clearfsimport不会删除组件根目录下的文件 [英] clearfsimport does not remove files at the component root dir

查看:79
本文介绍了clearfsimport不会删除组件根目录下的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下命令行将文件导入VOB:

I am using this command line to import files into a VOB:

clearfsimport -recurse -rmname -nsetevent -filter <sourceDir>/* <vobComponentRootDir>

sourceDir的内容:

Content of sourceDir:

fileA
fileB

的内容导入前vobComponentRootDir

fileC

导入后 vobComponentRootDir 的内容:

fileA
fileB
fileC

<$尽管我使用了'-rmname'选项,但c $ c> fileC 并未被删除。

我怀疑这是因为它位于组件的根目录

fileC is not removed, despite I used '-rmname' option.
I suspect it is because it is at the root of the component

我想使此导入自动化,并且在 sourceDir vobComponentRootDir 。

I want to automate this import and have the same content in sourceDir and vobComponentRootDir.

如何完成此操作?

推荐答案

<$ c我在 如何在ClearCase中通过文件扩展名删除文件元素的$ c> -rmname 选项? 对于 clearfsimport 现在可能始终有效:

The -rmname option that I mentioned in "How to delete file elements by file extension in ClearCase?" for clearfsimport might now always work:

  • "clearfsimport -rmname may not detect removed directories if wildcards are used to specify source directories"
  • "clearfsimport -rmname does not work for files at the root directory"

第二个链接与此处相关,将解释为什么保留fileC的原因。

The second link is relevant here and would explain why fileC remains.


这按设计工作。

-rmname 选项仅适用于目录和运行com时,您必须位于vob目录中

This is working as designed.
The -rmname option only applies to directories and you must be in a vob directory when you run the command.

最好不要将完整的VOB用作组件,而应使用多分量VOB。

It is best to not use a full vob as a component, but to use a multi-component vob.

如果不可能,则可以尝试将 vobComponentRootDir 的内容移动到子文件夹中(仅适用于 clearfsimport 起作用): vobComponentRootDir\子文件夹

然后移动相同的内容cleafsimport完成后,返回 vobComponentRootDir

If not possible, then you can try and move the content of vobComponentRootDir in a subfolder (just for the clearfsimport to work): vobComponentRootDir\subfolder.
And move that same content back in vobComponentRootDir once the cleafsimport is completed.

这篇关于clearfsimport不会删除组件根目录下的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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