clearfsimport 不会删除组件根目录中的文件
clearfsimport does not remove files at the component root dir
我正在使用此命令行将文件导入 VOB:
clearfsimport -recurse -rmname -nsetevent -filter <sourceDir>/* <vobComponentRootDir>
sourceDir 的内容:
fileA
fileB
导入前 vobComponentRootDir
的内容:
fileC
导入后 vobComponentRootDir
的内容:
fileA
fileB
fileC
fileC
没有被删除,尽管我使用了 '-rmname' 选项。
我怀疑是因为它在组件的根部
我想自动执行此导入并在 sourceDir
和 vobComponentRootDir
中具有相同的内容。
我怎样才能完成这个?
我在“How to delete file elements by file extension in ClearCase?" for clearfsimport
中提到的 -rmname
选项现在可能总是有效:
- "
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"
第二个 link 在这里是相关的,可以解释为什么 fileC 仍然存在。
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。
如果不可能,那么您可以尝试将 vobComponentRootDir
的内容移动到 subfolder
中(只是为了让 clearfsimport
起作用):vobComponentRootDir\subfolder
.
一旦 cleafsimport 完成,将相同的内容移回 vobComponentRootDir
。
我正在使用此命令行将文件导入 VOB:
clearfsimport -recurse -rmname -nsetevent -filter <sourceDir>/* <vobComponentRootDir>
sourceDir 的内容:
fileA
fileB
导入前 vobComponentRootDir
的内容:
fileC
导入后 vobComponentRootDir
的内容:
fileA
fileB
fileC
fileC
没有被删除,尽管我使用了 '-rmname' 选项。
我怀疑是因为它在组件的根部
我想自动执行此导入并在 sourceDir
和 vobComponentRootDir
中具有相同的内容。
我怎样才能完成这个?
我在“How to delete file elements by file extension in ClearCase?" for clearfsimport
中提到的 -rmname
选项现在可能总是有效:
- "
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"
第二个 link 在这里是相关的,可以解释为什么 fileC 仍然存在。
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。
如果不可能,那么您可以尝试将 vobComponentRootDir
的内容移动到 subfolder
中(只是为了让 clearfsimport
起作用):vobComponentRootDir\subfolder
.
一旦 cleafsimport 完成,将相同的内容移回 vobComponentRootDir
。