如何确定 Clearcase 元素是否已移动/重命名?
我在给定的子流上有给定的文件。我想将流上的版本与另一个流上的相同元素进行比较。为此,我需要确定文件是否已移动到子流上,以便我知道要在父流上查找什么名称。但是,似乎没有一种简单的方法可以使用命令行工具查找重命名事件。
我能找到的唯一方法是在父目录的每个版本上使用cleartool diff来查找包含重命名的diff,但似乎应该有一种更简单的方法。
I have a given file on a given child stream. I want to compare the version on the stream to the same element on another stream. To do this, I need to figure out if the file has been moved on the child stream so I know what name to look for on the parent stream. However, there doesn't seem to be an easy way to find rename events using the command line tools.
The only way I could find was to use cleartool diff on each version of the parent directory to look for the diff containing the rename, but it seems like there should be an easier way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此线程总结了主要选项,并提到了搜索基于文件的 OID。
但我首先尝试
cleartool lsvtree
:从“源”视图尝试(即在当前分支中选择具有当前名称的文件),并查看 lsvtree 是否能够在另一个分支上显示同一文件的版本。
OP bradtgmurray 报告:
lsvtree
列出了任何流的当前名称的元素历史记录,该流不是不是检测重命名文件所需的。cleartool desc -fmt '%On'@@
在子项中,cleartool desc -fmt '%n' oid:
在父级中。The main options are summarized by this thread and mention a search based on the OID o the file.
But I would first try a
cleartool lsvtree
:Try that from the "source" view (that is the one selecting the file with its current name in the current branch), and see if the
lsvtree
is able to display the version of that same file on the other branch.The OP bradtgmurray reports:
lsvtree
lists element history with the current name for whatever stream, which isn't what is needed for detecting renamed file.cleartool desc -fmt '%On' <filename>@@
in the child andcleartool desc -fmt '%n' oid:<oid>
in the parent.