比较时,Clearcase 快照视图路径无法解析
我们在工作中使用 Clearcase,并且我设置了多个快照视图(在 Windows XP 上)。视图本身似乎工作得很好,但是每当我尝试比较快照视图中任何元素的任何版本时,我的 diff 工具(目前是 Beyond Compare)都会出现问题。具体来说,如果我与以前的版本进行比较,我会发现当前版本很棒,但以前的版本从未出现在 diff 工具中。
我稍微研究了一下这个问题,并查看了传递到 diff 工具的命令行,CC 传递了错误的文件路径。不起作用的文件的路径如下所示:
//server/path/to/viewstorage.vws/....
问题似乎出在用于访问找到该文件的 SMB 共享的 //server 中。
CC从哪里得到这条糟糕的路径?这是否与我的快照视图的设置方式有关(这已经工作了很长时间并且仍然可以在我同事的一些机器上工作)?有什么方法可以将此路径更改为 Windows 期望的典型 \\server
吗?
更新:
好的,所以我原来的问题是在家写的,并不完全准确。实际路径更像是这样的:
//server/path/to/vobstorage.vbs\....
回答 @koslorr问题,视图的全局路径是正确的(视图实际上存储在我机器上的公共共享上),但是对 vob 执行类似的命令(cleartool lsvob -l /my-working- vob
) 确实表明 VOB 的全局路径不正确。可以用与视图标签类似的方式更新吗?这是我的 CC 管理员需要做的事情吗?
We use Clearcase at my work and I have several snapshot views setup (on Windows XP). The views themselves seem to work great, however whenever I try to compare any versions of any elements from my snapshot view, I have problems with my diff tool (currently Beyond Compare). Specifically, if I'm comparing with previous, I see the current version great, but the previous version never shows up in the diff tool.
I've looked into the problem a bit and looking at the command line that is getting passed into the diff tool, CC is passing in a bad path to the file. The path to the file that is not working looks something like this:
//server/path/to/viewstorage.vws/....
The problem appears to be in the //server used to access the SMB share where the file is found.
Where is CC getting this bad path from? Is this something specific to how my snapshot view is setup (this worked for a long time and still works on some of my co-worker's machines)? Is there any way to change this path to the typical \\server
that Windows expects?
Update:
Ok, so my original question was written from home, and wasn't entirely accurate. The actual path is more like this:
//server/path/to/vobstorage.vbs\....
To answer @koslorr question, the global path for the view is correct (the view is actually stored on a public share on my machine), however doing the similar command for the vob (cleartool lsvob -l /my-working-vob
) does show that the global path for the VOB is incorrect. Can this be updated in a similar way to the view tag? Is this something my CC admin is going to need to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查您的视图全局路径
使用全局路径是否采用正确的 \server... 形式
?如果不是,那么您可以将
其更改为正确的形式。
cleartool man mktag 应该告诉你更多细节。
Check your view Global Path with
Is the Global Path in the correct \server.... form?
If it is not, then you can use
to change it to the correct form.
cleartool man mktag should tell you more in details.
在快照视图路径中执行时,
cleartool diff -pred myFile
会给您带来什么?如果全局路径不正确,可能是因为:
cleartool man mktag
),如 kolslorr 在 他的回答。不要忘记指定视图存储的主机及其全局路径(请参阅 "重命名 ClearCase VOB 或视图")What a
cleartool diff -pred myFile
gives you when executed in your snapshot view path?If the global path is incorrect, it can be because of:
cleartool man mktag
), as kolslorr mentions in his answer. Don't forget to specify the host of the view storage as well as its global path (see "Renaming a ClearCase VOB or View")