发新话题
打印

[求助] 如何获取一个月内提交的label列表( 此文章被查看:765次,被回复:9篇!! )

如何获取一个月内提交的label列表

大家好,请教一个问题,一个大的项目,异地共同开发,有一个主分支及几个开发分支,不同地方的研发人员分别往不同的分支上提交label,如何能获取所有分支上一个月内提交的所有label的列表?



© 本文为 RachelSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

run-->cleartool man config_spec

察看里面的time rule
–time date-time
Modifies the meaning of the special version label LATEST: the rule selects from a branch the last version that was created before a particular time. The date-time argument is specified in one of the standard formats:
date.time | date | time | now where:

date  := day-of-week | long-date  
time  := h[h]:m[m][:s[s]] [UTC [ [ + | - ]h[h][:m[m] ] ] ]
day-of-week  := today |yesterday |Sunday | ... |Saturday |Sun | ... |Sat  
long-date  := d[d]–month[–[yy]yy]
month  := January |... |December |Jan |... |Dec  

Specify time in 24-hour format, relative to the local time zone. If you omit the time, the default value is 00:00:00. If you omit date, the default is today. If you omit the century, year, or a specific date, the most recent one is used. Specify UTC if you want to resolve the time to the same moment in time regardless of time zone. Use the plus (+) or minus (-) operator to specify a positive or negative offset to the UTC time. If you specify UTC without hour or minute offsets, Greenwich Mean Time (GMT) is used. (Dates before January 1, 1970 Universal Coordinated Time (UTC) are invalid.)

The creation times of the versions on the branch are looked up in their create version event records. (No error occurs if you use a –time clause in a rule that does not involve the version label LATEST; the clause has no effect.)

The –time clause in a particular rule overrides any general time rule currently in effect. (See Time Rules )

Note: A –time clause must precede any other optional clauses and may not include any query language constructs.

Examples:

/main/LATEST –time 10–Jul.19:00 Most recent version on main branch, as of 7 P.M. on July 10.
.../bugfix/LATEST –time yesterday Most recent version on a branch named bugfix (which can be at any branching level), as of the beginning of yesterday (12 A.M.).
/main/bugfix/LATEST –time Wed.12:00 Most recent version on subbranch bugfix of the main branch, as of noon on the most recent Wednesday.
–time 5–Dec.13:00  December 5, at 1 P.M.
–time 11:23:00  Today, at 11:23 A.M.
–time 12–jun–99  June 12, 1999, at 00:00 A.M.
–time now  Today, at this moment.
–time 9-Aug.10:00UTC  August 9, at 10 A.M. GMT.  

The date/time specification is evaluated when you set or edit the config spec, and whenever the view_server process is started (for example, with startview or setview (dynamic views only)). Thus, the meaning of a relative specification, such as today, may change over time. However, the date/time is not evaluated at run time. Therefore if you last performed one of the commands listed above four days ago, the meaning of a relative specification, such as today, has the value of the date four days ago, not the value of the date today.



© 本文为 springsparkSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

label不是提交的
可以查找到一个月内创建的lbtype



© 本文为 amongSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员
Where are we ?

TOP

还请among 指点一下如何查找到一个月内创建的lbtype呢?非常感谢啦。

© 本文为 Rachel 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

Rachel应该说的是mklabel,而不是mklbtype

先要修改一下vob_scrubber_params,然后通过lshistory可以查出来

默认情况下,mklabel的event record只保存一周

© 本文为 i子休 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员
ed

TOP

zixiu说的不错
mklbtype 只在创建lbtype的
至于mklabel,那是把type加到version上

© 本文为 among 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员
Where are we ?

TOP

在vob里面右键找到type explorer--〉label type
引用:
原帖由 Rachel 于 2007-8-20 20:27 发表
还请among 指点一下如何查找到一个月内创建的lbtype呢?非常感谢啦。

© 本文为 springspark 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

呵呵,确实是mklabel. 在Linux 系统下装的cc。谢谢大家,我试一下子休说的方法。

© 本文为 Rachel 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

lstype -kind brtype
我使用这个命令取到了label,但是怎么用时间来控制呢?
比如说,我就要4月1日mk的label。

© 本文为 pengpeng_py 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员
灵魂在高处,生活在低处.

TOP

创labtype时,名字要有规律,之后找的时候,加个 |grep 就好了.

© 本文为 hongyu 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

发新话题