Change set predecessor using cleartool

▼魔方 西西 提交于 2019-12-09 00:16:19

问题


Eventually I'd like to find out how to diff a version in an UCM activity with the change set predecessor, using the command prompt, assuming there is more than one version for the same file in the activity.

I already know how to get all the versions of a file in an activity. In general I could diff the latest version in the set with the earliest-1, but if the earliest version is the first version, because this is a new stream, then I'll have to figure the original stream. And that is also something I don't know how to accomplish.

A single cleartool command that receives a version and tells its predecessor will solve all my problems.

Any ideas?


回答1:


I don't know of a single command.

I do the a cleartool descr -pred would give you the predecessor of a current version, enabling you to get the version of said predecessor in the previous branch.

The extended pathname of a version is composed of the current branch (named ofter the current stream), and just before, of the branch from which the current branch has been created, which allows you to get the original stream name.

From there you have the version you need to make your diff.
However that will require a script.



来源:https://stackoverflow.com/questions/6033945/change-set-predecessor-using-cleartool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!