重用ClearCase视图 [英] Reuse a ClearCase view

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

问题描述

我想重新加载一个先前创建的视图,而不是创建一个全新的视图。

I would like to reload a view (which was created previously) instead of creating a whole new one.

两种情况:

1-硬盘崩溃,不再显示本地视图。

2-ClearCase安装了新笔记本电脑。

1 - Hard drive crashes and the local view isn't there anymore.
2 - A new laptop is set up with ClearCase.

在这两种情况(或两种情况)下,都可以在本地驱动器上还原视图吗?还是必须先删除视图然后创建一个新视图?如果我可以避免的话,我宁愿没有STREAM_2_int和STREAM_3_int。

In either (or both) of these cases, can a view be restored on your local drive? Or does the view have to be removed and then create a new one? I would rather not have STREAM_2_int and STREAM_3_int if I can get away from that.

(侧问:如果某人拥有台式机和笔记本电脑,他们可以使用同一视图

(Side question: If someone has a desktop and a laptop, can they use the same view on each, or is it only one for each computer?)

推荐答案

是的,对于快照视图,提供了ClearCase视图存储( .vws 目录)与视图本身不在同一工作站上。

Yes, for a snapshot view, provided the ClearCase view storage (the .vws directory) isn't on the same workstation than the view itself.

唯一需要的文件将目录设为(先前创建的)快照视图的根目录是隐藏文件 view.dat

The only file needed to make a directory a root directory of a (previously created) snapshot view is the hidden file view.dat.

请参阅IBM技术说明 重新生成 view.dat 文件

See the IBM technote "Regenerate the view.dat file"

和用于恢复该文件的perl脚本(打包在任何ClearCase安装中) view.dat文件是< ClearCase> \etc\utils\regen_view_dot_dat.pl -tag< view-tag-id> <查看根目录路径>

And the perl script (packaged within any ClearCase installation) used to restore that view.dat file is <ClearCase>\etc\utils\regen_view_dot_dat.pl -tag <view-tag-id> <view root directory path>.

示例:

C:\source>ccperl c:\Rational\ClearCase\etc\utils\regen_view_dot_dat.pl -tag aSnapViewName .
rgy_view_uuid: "d17190d381de4ce89757d5465eb41f2c".
creating ".\view.dat".

C:\source>type view.dat
ws_oid:00000000000000000000000000000000 view_uuid:d17190d381de4ce89757d5465eb41f2c


同样,

仅在视图存储 \\shared\path\to\aSnapViewName.vws 时才有效从工作站或新笔记本电脑访问的路径。

Again, that can only work if the view storage \\shared\path\to\aSnapViewName.vws is in a shared path accessible from the workstation or from the new laptop.

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

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