有什么方法可以将自定义的diff工具与cleartool / clearcase一起使用? [英] Any way to use a custom diff tool with cleartool/clearcase?

查看:70
本文介绍了有什么方法可以将自定义的diff工具与cleartool / clearcase一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在透明快照视图中工作时,我想使用自己的差异。

I'd like to use my own diff when working in a clearcase snapshot view.

据我所知,运行 cleartool diff 时无法指定差异工具,所以我以为我可以运行 mydiff<前身文件><视图中的修改文件> 之类的东西,但是我对ClearCase的了解不足能够找到要比较的前身文件。

As far as I can see, there is no way to specify a diff tool when running "cleartool diff", so I was thinking I could run something like "mydiff <predecessor file> <modified file in my view>", but I don't know enough about ClearCase to be able to find the "predecessor file" to diff against.

有什么方法吗?

忘了提(直到现在,在阅读了前两个回应后, Windows)),这是在Unix上,我不允许使用ClearCase配置。

Forgot to mention (until now, after reading the first two responses dealing with windows) that this is on Unix, and I am not allowed to muck with the ClearCase configuration.

推荐答案

根据这里的建议进行工作。我发现了cleartool get命令,因此执行此命令以将先前版本获取到临时文件:

I got another way working based on the suggestions here. I discovered the cleartool "get" command, so I execute this to get the previous version to a temp file:

cleartool get -to fname.temp fname @@ predecessor

cleartool get -to fname.temp fname@@predecessor

然后运行我的差异文件,然后删除该文件。

Then run my diff, and delete that file.

感谢所有建议。

这篇关于有什么方法可以将自定义的diff工具与cleartool / clearcase一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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