How can I use ClearCase to “add to source control …” recursively?

后端 未结 10 1588
暖寄归人
暖寄归人 2020-11-22 08:26

I unpacked a zip-file delivery into a clearcase view. Now I want to add the complete file tree to the repository. The GUI only provides an \"Add to source control ...\" for

相关标签:
10条回答
  • 2020-11-22 08:35

    You have to use the commandline. The Context menu in Explorer doesnt do this recursively!

    clearfsimport –recurse /usr/src/projectx /vobs/projectx/src
    
    0 讨论(0)
  • 2020-11-22 08:35

    Had a similar requirement to add a directory recursively to ClearCase. Since I did not have access to clearfsimport tool nor do I have ClearCase integrated with Windows Explorer, found an easy solution within ClearCase GUI.

    1) Add the root directory using "Add to Source Control" menu option. 2) Click on this directory and then use "ClearCase Search" to search for all Private Files in this directory. 3) Select all from the Search Results and "Add to Source Control"

    There you go ! The entire directory is recursively added from within ClearCase GUI

    0 讨论(0)
  • 2020-11-22 08:37

    ClearTeam Explorer, version 8 (maybe earlier as well), has recursive add of subdirectories/files when you select "Add to Source Control". When the "Add to Source Control" dialog box appears, check the "Include descendant artifacts of the selected directories" checkbox and uncheck the "Checkout descendant files only, do not checkout descendant directories" checkbox.

    0 讨论(0)
  • 2020-11-22 08:37

    Heres a script to do it And tips to integrate the script from Explorer

    http://www.ibm.com/developerworks/rational/library/4687.html

    0 讨论(0)
  • 2020-11-22 08:43

    Since I did not have access to clearfsimport , I added the files/directories in a two step process:

    1.) find . ! -path . -type d | xargs cleartool mkelem -mkpath -nc

    This will create nodes for all new directories recursively

    2.) find ./ -type f | xargs cleartool mkelem -nc

    This will create nodes for all new files recursively

    0 讨论(0)
  • 2020-11-22 08:54

    Here is one other way I found by using the Windows Explorer:

    1. Select Search... from the context menu on the target directory.
    2. Search for *.
    3. Select all (Ctrl-A) files/directories in the result list.
    4. Select ClearCase > Add to source control... from the context menu on an item in the result list.

    There you go ...

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