ClearCase: how to generate a patch (unified diff)

2019-04-14 16:17发布

Is it possible to generate an patch file from the changeset of a UCM Activity in ClearCase?

I can generate the list of changes this way: cleartool lsactivity -l activity:my_activity_name

1条回答
beautiful°
2楼-- · 2019-04-14 16:26

The main approach is list all the files within an activity, and use cleartool diff -pred -diff_format in order to generate a diff.

With the -diff_format option, you would get headers and differences in the same style as the UNIX and Linux diff utility.

But that would require some scripting, as I mentioned in "Change set predecessor using cleartool".

查看更多
登录 后发表回答