ClearCase:如何从活动中生成补丁(统一的diff)文件? [英] ClearCase: how to generate a patch (unified diff) file from an activity?

查看:105
本文介绍了ClearCase:如何从活动中生成补丁(统一的diff)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从ClearCase中的UCM活动的变更集生成补丁文件?

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

我可以通过以下方式生成变更列表:
cleartool lsactivity -l活动:my_activity_name

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

推荐答案

主要方法是列出活动中的所有文件,并使用 cleartool diff -pred -diff_format 以便生成差异。

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

使用 -diff_format 选项,您将获得与UNIX和Linux diff相同样式的标头和不同之处

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

但这需要一些脚本,如我在 更改使用cleartool设置前身

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

这篇关于ClearCase:如何从活动中生成补丁(统一的diff)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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