clearfsimport does not remove files at the component root dir

前端 未结 1 401
无人共我
无人共我 2021-01-07 09:55

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

clearfsimport -recurse -rmname -nsetevent -filter /* 


        
相关标签:
1条回答
  • 2021-01-07 10:40

    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"

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

    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.

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

    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.

    0 讨论(0)
提交回复
热议问题