如何使用clearfsimport将文件导入到空的VOB中 [英] How to use clearfsimport to import files into an empty VOB

查看:79
本文介绍了如何使用clearfsimport将文件导入到空的VOB中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个VOB和一个加载它的快照视图。 VOB是空的,我想添加一些文件来对其进行初始化,但是我要导入的所有文件都出现错误。这是详细信息。

I created a VOB and a snapshot view that loads it. The VOB is empty and I wanted to add some files to initialize it, but I got errors for all files that I wanted to import. Here is the details.

VOB是通过以下命令创建的:

The VOB is created by this command:

ct mkvob -tag /vobs/sqlite -comment "testing VOB for Sqlite" -public /var/clearcase/vobs/sqlite.vbs

该视图由以下命令创建:

The view is created by this command:

ct mkview -tag sqlite-dev -snapshot /home/clearcase/working/sqlite-dev

配置规范为:

element * CHECKEDOUT
element * /main/LATEST 
load /vobs/sqlite

我签出了 vobs / sqlite。

I checked out the "vobs/sqlite".

在视图目录中 / home / clearcase / working / sqlite-dev ,我运行 clearfsimport 导入一些文件:

In the view directory /home/clearcase/working/sqlite-dev, I run clearfsimport to import some files:

clearfsimport -rec /home/clearcase/tmp/sqlite-3.6.23.1/* vobs/sqlite

但是所有文件和目录都出现错误。例如,对于文件 VERSIONS,我看到以下错误:

But I got errors for all files and directories. Fore example, for the file "VERSIONS", I saw errors like:

Creating element "vobs/sqlite/VERSION".
clearfsimport: Error: Unable to lookup "VERSION" in "/vobs/sqlite@@/main/CHECKEDOUT": no version selected in configuration specification.
clearfsimport: Error: Unable to access "/vobs/sqlite/VERSION": no version selected in configuration specification.
clearfsimport: Warning: Trouble updating name "VERSION" in snapshot view: error detected by ClearCase subsystem.
A separate update may need to be performed in order to reflect the results of the operation in the snapshot view.
clearfsimport: Warning: Unable to check if new version of "vobs/sqlite/VERSION" is identical.
clearfsimport: Warning: Element "vobs/sqlite/VERSION" is no longer being loaded and will not be updated as part of this operation.
    version "/main/1".

有人可以指出我在这里做错了什么吗?我应该以某种方式更改配置规范吗?

Can anybody please point out what I did wrong here? Should I change the config spec somehow?

在尝试了VonC的答案后进行了更新。

Updates after I tried VonC's answer.

感谢您的回复。我尝试再次运行 clearfsimport ,但遇到了一些不同的错误:

Thanks for the response. I tried to run clearfsimport again and I saw some different errors:

Validating directory "/home/clearcase/working/sqlite-dev/vobs/sqlite/tool".
clearfsimport: Error: Cannot checkout a directory when directory doesn't exist in the snapshot view.
clearfsimport: Error: Could not checkout directory "/home/clearcase/working/sqlite-dev/vobs/sqlite/tool".
Validating element "/home/clearcase/working/sqlite-dev/vobs/sqlite/VERSION".
clearfsimport: Error: Could not access "/home/clearcase/working/sqlite-dev/vobs/sqlite/VERSION".
clearfsimport: Warning: Trouble importing element "/home/clearcase/working/sqlite-dev/vobs/sqlite/VERSION".

tool 是目录, VERSION 是一个文件。所有文件/目录都发生相同的错误。

tool is a directory and VERSION is a file. The same error happens to all files/directories.

CC安装在Linux上,因此我无法尝试ClearCase资源管理器。

The CC is installed on Linux, so I cannot try the ClearCase explorer.

我尝试了完整路径,但是我看到了相同的错误。

I tried the full path but I saw the same errors.

我以root用户身份运行这些命令,我​​猜 -nset无济于事。我尝试添加它,但仍然看到相同的错误。

I am running these command as root, I guess "-nset" won't help. I tried adding it but still saw the same error.

如果我只想添加一次文件,还有其他添加文件的方法吗?

Are there other ways to add files if I only want to add them once?

推荐答案


  • 尝试 clearfsimport 而不先结帐vob。

  • 尝试通过ClearCase资源管理器将文件添加到vob中(只是看它是否起作用)

  • 尝试指定vob的完整路径在clearfsimport时: / home / clearcase / working / sqlite-dev / vobs / sqlite

    • Try the clearfsimport without checkouting the vob first.
    • Try adding a file to the vob through the ClearCase explorer (just to see if it works)
    • Try specifying the full path of the vob when clearfsimporting: /home/clearcase/working/sqlite-dev/vobs/sqlite
    • 注意:您也可以对这种操作使用动态视图(这样可以避免有关工作空间的任何更新视图错误,因为动态视图不需要更新其由网络管理的工作空间)

      Note: you can also use a dynamic view for this kind of operation (that avoid any "update view" error regarding the workspace, since a dynamic view has no need to update its -- network managed -- workspace)

      另请参见如何使用ClearCase递归添加到源代码控制...? 有关 clearfsimport 选项:此处可能还需要 -nset 选项。

      See also "How can I use ClearCase to "add to source control …" recursively?" for more on the clearfsimport options: the '-nset' option might also be needed here.

      这篇关于如何使用clearfsimport将文件导入到空的VOB中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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