Clearcase:列出2个基准之间的所有已更改文件 [英] Clearcase: list all changed files between 2 baselines
问题描述
我想知道在2个基准之间更改的所有文件.我需要有一个文本列表.通过该界面,我需要输入基线的每个活动.在此对话框中,我列出了文件,但是无法将名称复制到文本编辑器.
I want to know all files that changed between 2 baselines. I need to have a list in text. Through the interface I need to enter in each activity of baseline. In this dialog, I list the files, but can't copy the names to a text editor.
推荐答案
常规命令是:
cleartool diffbl -ver baseline1@\apvob baseline2@\apvob
但是请注意,它将列出在两个基准之间更改的所有版本,而不仅仅是元素(文件或目录).
这意味着一个文件可以被列出多次,因为在两个基准之间,所述文件的多个版本已更改.
But be aware it will list all the versions changed between the two baselines, not just the elements (files or directory).
That means a file could be listed multiple times, because multiple versions of said files have changed between the two baselines.
该旧线程提到了一种可能的解决方案(未经测试),以便仅列出元素(文件或目录)一次.
That old thread mentions a potential solution (not tested) in order to list the elements (files or directories) only once.
my %elem = map {
tr|\\|/|; # Convert slashes to unix style.
s|^<< M:/^/+/^/+/||; # Drop view tag and vob tag.
s|\@\@.*||; # Drop branch and version id.
$_ => 1; # Pick up the path.
} qx(cleartool diffbl -version -first $laterbl $olderbl);
print sort keys %elem;
The OP neves confirms that this idea works, with:
cleartool diffbl -ver baseline_abc.123@\\MYVOB baseline_abc.358@\\MYVOB | \
awk -F '\\' '{print $8}' |grep @@|sort| uniq|sed 's/@@//'
这篇关于Clearcase:列出2个基准之间的所有已更改文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!