ClearCase:是否可以选择性地交付或变基?
- 当将流A传递到流B时,是否可以只将选定的元素(准确地说是目录)从A传递到B?
- 当从基线 B 变基流 A 时,是否可以仅将所选元素(准确地说是目录)从 B 变基到 A?
- When delivering stream A to stream B, is it possible only to deliver selected elements (directories to be precise) from A to B?
- When rebasing a stream A from a baseline B, is it possible only to rebase selected elements (directories to be precise) from B to A?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 ClearCase UCM:
(并且只有来自直接父流的基线)。
因此,如果目录或元素是活动的唯一项目,并且该活动不依赖于其他活动(当已经完成向另一个流的交付时可能会发生这种情况:所有当前活动都通过技术“链接在一起”)基线),那么您可以仅交付这些项目(通过仅交付该活动)。
如果您的目录和文件只是源基线和您要在要变基的流上更改的基础基线之间的差异,则您可以仅对这些项目进行变基。
但事实是:使用 ClearCase 进行部分交付或变基是很困难的。
With ClearCase UCM:
(and only baselines coming from the direct parent Stream, at that).
So if you directories or elements are the only items of an activity, and that activity doesn't depend on other activities (which can happen when a deliver to another Stream has already been done: all present activities are "linked together" by a technical baseline), then you can deliver just those items (by delivering only that activity).
If your directories and files are then only difference between the source baseline and the foundation baseline you are about to change on the Stream you are rebasing, you can rebase just those items.
But the fact is: it is difficult to make partial deliveries or rebases with ClearCase.
cleartool findmerge
正是您所寻找的。如果您的列表很长,您需要围绕它构建一个包装器(ANT/Perl)。因此,转到目标流/视图上下文并运行
findmerge srcdir –type d –merge -print
来测试并将-print
替换为-exec,-gmerge, -abort
等等,根据需要。只需将 srcdir 替换为您的目录或脚本中的迭代列表/变量/数组即可。要查找完整的详细信息,请参阅 http://www.ipnom.com/ClearCase-Commands/findmerge。 html
cleartool findmerge
does exactly what you are looking for. You'd need to build a wrapper (ANT/Perl) around it if your list is long.so go to the target stream/view context and run
findmerge srcdir –type d –merge -print
to test and replace-print
with-exec,-gmerge,-abort
etc. as you need. Just replacesrcdir
with your directory or an iterative list/variable/array in your script.Find complete details look at http://www.ipnom.com/ClearCase-Commands/findmerge.html