查找在特定分支上应用的标签的命令 [英] Command to find labels applied on particular branch
问题描述
查找在特定分支上应用的标签的命令。
Command to find labels applied on particular branch..
假设我有一个名为BR_test的分支名称,我想知道在该分支上应用的所有标签是什么。
Suppose i have a branch name called BR_test , i want to know what are all the labels applied on this branch.
推荐答案
如果这是UCM,则简单的 lsbl
就足够了:
If this was UCM, a simple lsbl
would be enough:
cleartool lsbl -stream myStream@\mypvob
但是,如果这是基本的ClearCase,则简单的方法是确定始终标记的元素(目录或文件)(通常是根目录) ,并获取该标签上的所有标签给定分支的元素,方法是 cleartool查找
和 cleartool描述
,基于 fmt_ccase
格式(此处为Windows语法):
But if this is base ClearCase, the simple way would be to determine what element (directory or file) is always labeled (typically a root directory), and fetch all the labels on that element for a given branch, through a combination of cleartool find
and cleartool describe
, based on fmt_ccase
format (Windows syntax here):
C:\mySnapshotView\myVob\myRootDir>
ct find . -nrec -name "." -ver "brtype(myBranch)" -exec "cleartool descr -fmt "%l" \"%CLEARCASE_XPN%\""
这将列出特定分支的该元素所有版本的所有标签。
That will list all labels for all versions of that element for a specific branch.
这篇关于查找在特定分支上应用的标签的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!