ClearCase: how to generate a patch (unified diff) file from an activity?

梦想的初衷 提交于 2020-01-01 16:50:50

问题


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:


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".



来源:https://stackoverflow.com/questions/26148879/clearcase-how-to-generate-a-patch-unified-diff-file-from-an-activity

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