下午好,

这些天我似乎有点陷入CC-land,但我有一个(希望)关于正确的CC处理的最终问题:

使用CC视图创建向导时,我可以在我的机器上完全正确地创建一个快照视图,但是当尝试使用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 ...

知道为什么会这样吗?我错过了什么吗?

有帮助吗?

解决方案

这通常是因为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可以自行确定主机,路径和gpath。

其他提示

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

有关详情,请参阅此链接

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top