Undo remove file in ClearCase

前端 未结 3 493
抹茶落季
抹茶落季 2020-12-06 05:34

I have a ClearCase view with a folder, and two files. I check out the folder, remove a file and check the folder back in. I am left with one folder and one file. Is there a

3条回答
  •  有刺的猬
    2020-12-06 06:39

    To add to Jonathan's answer:

    • you can do every step he describes in a graphical way, through the version tree of the parent directory: merge from the version which still references your file to the version to the current version (which doesn't reference anymore your file).
      Do a merge "graphically" (select the option "graphical merge")
      You can then select the file you want to restore.

    • you can also remove the effect of your last checkin (still for the parent directory) through a merge -delete:

    Caution: If more than one change was made to the directory in this version, those changes could be reverted as well. Use the cleartool lshistory command to determine what other changes were made to that directory version.

    1. Determine the version where the element was rmnamed.
    2. Use cleartool merge -delete to remove the changes applied in that version of the directory.

      For example:

      cleartool merge -to . -delete -version \main\17
      
    3. If the only change made in this version was the removal of the desired element, the change should automatically be made (see about caution).

提交回复
热议问题