我需要找到我在分支机构签到的所有版本 [英] I need to find all Versions checked-in by me on a branch
问题描述
在清楚的情况下,我需要找到我签入的所有版本
In Clear Case, I need to find all Versions that checked-in by me
在下面的示例中,我需要找到Loi签入的所有版本Wang,在分支 mybranch上
In the example below, I need to find all versions checked-in by Loi Wang, on branch "mybranch"
>$ct desc HelloWorld.xml <br >
version "HelloWorld.xml@@/main/***mybranch***/9" <br >
created 09-Sep-09.06:50:14 by ***Loi Wang*** (lwang.eng@compu10) <br >
"Hello world issue " <br >
Element Protection: <br >
User : jsmith : r--<br >
Group: eng : r--<br >
Other: : r--<br >
element type: xml<br >
predecessor version: /main/mybranch/8<br >
Attributes:<br >
ISSUE = "IS-123"<br >
推荐答案
原理是使用 cleartool lsco
进行签出,并查找要进行检查:
The principle is to use cleartool lsco
for checkout, and find for checking:
cd c:\myView\myVob\...\mypath
or
cd /view/myView/myVob/.../myPath
ct lsco -me -brtype myBranch -rec .
注意:您需要在视图中使用分支名称,而不能使用' @ \PVobName
'(非限定名称)
Note: you need to be in your view, and use the name of the branch without '@\PVobName
' (a "non-qualified name")
在您的情况下
ct lsco -user lwang.eng@compu10 -brtype mybranch -rec .
这将为您提供所有元素已签入:
ct find . -user lwang.eng@compu10 -branch brtype(mybranch) -print
这将创建所有版本在这些签到期间:
This would all the versions created during those checkins:
ct find . -user lwang.eng@compu10 -version brtype(mybranch) -print
再次,mybranch用于其不合格格式
Again, mybranch is used in its "non-qualified" form
如果上述方法不起作用(适用于 -我
或 -用户myName
,但不一定对其他任何用户而言),一个简单的grep就足够了:
If the above does not work (it works for "-me
" or "-user myName
", but not necessarily for any other user), a simple grep could be enough:
ct find . -version "brtype(mybranchv)" -exec "cleartool descr -fmt """%n %u\n""" %CLEARCASE_XPN%"|grep lwang.eng
这篇关于我需要找到我在分支机构签到的所有版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!