如何保存 cleartool diff 文件

How to save cleartool diff file

使用rcleartool> diff -g -pred myfile.xml以图形方式获取文件差异。但是有没有办法保存这个差异文件?对我来说,文件保存按钮被禁用。有什么提示吗?

我会首先省略 diff command: that should yield a text result, that you can easily redirect to a file-g (-graphical) optin 以保存其结果。

rcleartool> diff -pred myfile.xm > res

您可以在常规 CMD/bash 会话中这样做,也可以直接使用 rcleartool

rcleartool diff -pred myfile.xm > res

另请参阅“cleartool: how to write the result from command find to a text file”。

另外,保存选项被禁用的原因是差异工具也是合并工具。 "save" 选项仅在合并期间启用,并且仅在处理完所有未解决的合并点时才启用。