数据流增强(第一部分)

数据流增强(第一部分)

数据流深度
 
    自首次实行数据流以来,最常见的请求之一就是创建一种可以在单个数据流depot中使用数据流的目录结构。
            #1052310, 1009333 (Bug #50432) **
              Add the ability to root streams at a deeper level in the depot
              directory hierarchy.  New stream depots contain the ‘StreamDepth’
              field for defining the root level of a stream’s path (the number
              of slashes found within the stream’s Stream field) below the
              depot name. This field accepts a value between one and 10, while
              it defaults to one.
    曾经,数据流被要求以这种形式命名://DEPOTNAME/SOMETHING。在特定的数据流depot中,仍使用这种命名惯例,但是在2015.2版本中,每个depot中命名都是可以配置的。所以,现在你可以使用精细的//DEPOTNAME/1/2/3方式定义一个数据流depot,在一个rootdepot中创建一个深层的目录结构。
Switch @change
            #1039642 (Bug #77628) **
              ‘p4 switch’ now supports switching to a point-in-time stream.
              By specifying ‘p4 switch stream@change’ the command will set
              the stream spec/view creation as of that change and sync any
              files also to the change specified.

    这是syntacticsugar(糖衣语法)一小部分,使你能够更简单地在客户端spec中使用现存的StreamAtChange字段,通过指定StreamAtChange作为”p4 switch”的其中一部分。由于”p4 switch”在同步文件的同时也设置了客户端视图,这使得”p4switch stream@change”变成了一个一站式方法,可以把你的客户端同步到数据流的历史版本中。
默认当前数据流
            #1100312 (Bug #79497) **
              The ‘p4 stream’ and ‘p4 stream -o’ commands now default to
              the current client’s stream if no stream name is specified.
       syntacticsugar(糖衣语法)的另一部分是让使用数据流更加简便。如果你当前的客户端有一个相关联的数据流,那么现在你就可以通过在没有参数的情况下运行”p4 stream -o”来查看数据流spec,并且可以使用”p4 stream”进行编辑,这种方式就像你可以在经典客户端中使用”p4client -o” 和”p4 client”一样。
Import @label
            #1029470 (Bugs #72671, #76543) **
              Names of automatic labels can now be used as specifiers in import
              mappings on stream specs and in the ‘ChangeView’ on client specs.
    这是对于import @change/ChangeView功能的小幅度延伸:能够指定一个标签代替改变列表数量。请注意,这仅仅代表着这些标签自身是改变列表的别名;要建立这些标签,请清理标签视图字段并且进入修正字段中的”@CHANGELIST”。
请继续关注我之后的文章,我将会讨论2015.2版本中的数据流大的和新的性能。