使用 lsview 可见的 ClearCase 视图,对于 catcs 不存在

ClearCase view visible with lsview, nonexistent for catcs

** 在我正在使用的机器上,有一个我们称之为 magic_view 的视图 - 它表现出以下奇怪的行为:

$ ct lsview magic_view
  magic_view /view_store/our_team_vws/magic_view.vws
$ ct catcs -tag magic_view
ct: Error: View tag "magic_view": ClearCase object not found

现在,magic_view 不是我创建的,所以我猜它发生了什么奇怪的事情。但是——什么?什么会导致视图对 lsview 可见但对 catcs 未知?

表示该视图已被注册(cleartool register -view)

但是它的标签还没有声明(cleartool mktag -view)

cleartool register -view -replace -host newhost -hpath hpath/xxx.vws /hpath/xxx.vws
ct mktag -view -replace -tag tag -host newhost -gpath gpath gpath

在您的案例中缺少这张图片的标签部分:

你可以看到更多cleartool mktag -view examples here

client region 中可能缺少它的标签:

示例:从 UNIX 服务器创建一个 windows 标签,用于 ClearCase 视图及其在 NAS 设备上的视图存储:

cleartool mktag -view -tag samecs_view -region samecs_win -host view_server_host.samecs.com \
-gpath "\\samecs\ccviewstore \gbush_view.vws" \
-hpath "\\samecs\ccviewstore \gbush_view.vws" \
/net/samecs/ccviewstore/gbush_view.vws

作为 Brian Cowan adds , using the rgy_check 命令可以提供帮助。

That will tell you about cc registry issues.
At one time, there were issues getting the configspec of snapshot views if you weren't actually IN the view, but that currently works.