ClearCase:基线中版本扩展的路径名 [英] ClearCase: Version-extended pathname in a baseline

查看:75
本文介绍了ClearCase:基线中版本扩展的路径名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取属于基线的元素的版本扩展路径名?

Is it possible to obtain the version-extended pathname of an element that belongs to a baseline?

例如,如果我的文件名是 /vobs/myproj/mydir/myfile.txt 和UCM项目中的基线 bl_rc11 ,是否有 cleartool 子命令,它将重新调整属于 /vobs/myproj/mydir/myfile.txt 的版本扩展路径名bl_rc11

For example, if I have a file name /vobs/myproj/mydir/myfile.txt and a baseline bl_rc11 in a UCM project, is there a cleartool subcommand that will retun the version-extended pathname of /vobs/myproj/mydir/myfile.txt that belongs to bl_rc11?

推荐答案

这应该打印任何 myfile的扩展路径名。 txt 具有正确的基线

This should print the extended pathname of any myfile.txt with the right baseline

cleartool find . -name 'myfile.txt' -version 'lbtype_sub(bl_rc11)' –print

但是:

  • bl_rc11 is a full baseline (see "What is the difference between Full baseline and Incremental baseline in Clearcase UCM?")
  • bl_rc11 is the ID of the baseline, not just its name (its ID could actually be bl_rc11.xxxx)

另一种方法是使用 cleartool diffbl

Another way would be to use cleartool diffbl:

cleartool diffbl -pred -ver bl_rc11@\aPVob

但这只会列出 bl_rc11 及其上一个的基准,因此即使是递增的基准也仍会在版本上生成标签,这意味着cleartool查找仍然有效。

But that will only list the delta between bl_rc11 and its previous baseline, so even an incremental baseline would still generate a label on the version, meaning the cleartool find still works.

这篇关于ClearCase:基线中版本扩展的路径名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆