在ClearCase中比较视图 [英] Comparing views in ClearCase

查看:88
本文介绍了在ClearCase中比较视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ClearCase中有两个动态视图,据我所知,这两个视图应该是相等的。

一个应该查看 Main。 code>分支和另一个分支(我们称其为 A )。

I have two dynamic views in ClearCase which, as far as I know, are supposed to be "equal".
One is supposed to look at the "Main branch" and one at some other branch (let's call it A).

我从 A 合并到 Main (在 Main 视图中),由于某种原因, A 视图中的代码会编译,而Main不会。

是否可以比较差异视图?

I did a merge from A to Main (in the Main view) and for some reason the code at the A view compiles while Main does not.
Is there a way to compare the views for differences?

推荐答案

最简单的方法是使用外部差异工具在这两个视图上(例如Windows上的WinMerge或BeyondCompare,在Unix或Windows上的KDiff3,...)。

The simplest way is to use an external diff tool on those two views (like WinMerge or BeyondCompare on Windows, KDiff3 on Unix or Windows, ...).

我实际上将创建两个新视图(具有相同的配置spec而不是两个初始视图),以删除任何缓存效果并在那里开始比较。

完成初始检查后,我将在这两个视图中开始编译,然后查看是否有一个

I would actually create two new views (with the same config spec than the two initial views), to remove any "cache" effect, and start the comparison there.
Once that initial examen is done, I would start the compilation in those two views, and see if one of them still don't compile.

不要忘记将 A 合并为 Main 在合并后并不总是生成相同的文件集。

只有在之后Main中没有发生任何变化的情况下,它才会相同。 A 开始ed(或自从 A Main 的最后合并以来)。

Don't forget that merging A to Main will not always result in the same set of files after the Merge.
It would be the same only if no evolution has taken place in Main since A started (or since the last merge from A to Main).

setcs -current 您提到的将是:

The setcs -current you mention will:

–cur/rent




导致view_server刷新其缓存并重新评估当前的配置规范,该规范存储在文件 config_spec 在视图存储目录中。这包括:

causes the view_server to flush its caches and reevaluate the current config spec, which is stored in file config_spec in the view storage directory. This includes:


  • 使用非绝对规范(例如,现在,星期二)评估时间规则

  • 重新评估–config规则,可能选择与以前不同的派生对象

  • 重新读取包含规则中包含的文件

如果您在配置规范中依赖版本错误的包含文件,则第一个setcs会将其设置为正确的版本,第二个setcs将读取其版本内容,并为其余的内容设置正确的版本。

If you depend within your config spec on an "include file" which was at the wrong version, the first setcs would set it at the right version, and the second one would read its content and set the right version for the rest.

这篇关于在ClearCase中比较视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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