创建ClearCase快照视图的正确“cleartool mkview”命令

3

下午好,

最近我好像有点陷入了CC工作中不能自拔,但我有一个(希望)最后一个关于正确的CC处理的问题:

当使用CC View Creation Wizard时,我可以在我的机器上创建一个正确的快照视图,但是当尝试使用mkview命令做同样的事情时,它会失败......

使用视图创建向导会生成以下(有效的)视图:

cleartool> lsview battjo6r_view2
  battjo6r_view2       \\Eh40yd4c\Views\battjo6r_view2.vws
cleartool> lsview -long battjo6r_view2
Tag: battjo6r_view2
  Global path: \\Eh40yd4c\Views\battjo6r_view2.vws
  Server host: Eh40yd4c
  Region: CT_WORK
  Active: NO
  View tag uuid:f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View on host: Eh40yd4c
View server access path: D:\Views\battjo6r_view2.vws
View uuid: f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View attributes: snapshot
View owner: WW005\battjo6r

然而,当尝试通过手动创建视图时

mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath D:\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2

我遇到了以下错误:

cleartool> mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath D:\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2
Created view.
Host-local path: Eh40yd4c:D:\Views\battjo6r_view2.vws
Global path:     \\Eh40yd4c\Views\battjo6r_view2.vws
cleartool: Error: Unable to find view by uuid:6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18, last known at "<viewhost>:<stg_path>".
cleartool: Error: Unable to establish connection to snapshot view "6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18": ClearCase object not found
cleartool: Warning: Unable to open snapshot view "D:\SnapShotViews\battjo6r_view2".
cleartool: Error: Unable to create snapshot view "battjo6r_view2".
Removing the view ...

有什么想法为什么会发生这种情况?我漏掉了什么吗?

关于"mkview"命令输出的任何消息?如果您仍然有错误消息,请将它们作为评论留在我的答案中,我会查看。 - VonC
2个回答

2

这通常是由于albd未运行造成的。
实际上,它正在运行,但ClearCase尝试联系错误的主机。

这里:本地主机路径:Eh40yd4c:D:\Views\battjo6r_view2.vws非常可疑。

请尝试:

mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath \\Eh40yd4c\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2

那就是:hpath = gpath。
或者,如果第一条命令失败,也可以尝试以下命令(更简单且可能有效):
mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2

希望 ClearCase 能够自动确定主机、hpath 和 gpath。

@Jörg 很高兴能帮上忙:那个问题是一个“经典”(我第一次遇到时浪费了不少时间)。 - VonC

0
cleartool mkview -snapshot -tag <tag_name> -vws \\<computer_name>\<views_folder>\<view_name> <path_of_localstorage>

详情请查看此链接


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接