How to recover a file from “Checkout but removed” state?

后端 未结 2 1323
醉话见心
醉话见心 2021-01-12 04:17

I was trying to checkout a file and it went it to \"Checkout but removed\" state.

I am not able to undocheckout it and have no clue what needs to be done next.

2条回答
  •  心在旅途
    2021-01-12 05:12

    The simplest way to resolve this is to just create a new file with the same name. Then file is not missing any more and you can undo checkout and then check out again to start fresh. On the command line:

    $ cleartool ls your_file.c
    your_file.c: Checkout but removed
    your_file.c@@
    $ touch your_file.c
    $ cleartool ls your_file.c
    your_file.c@@/main/branch1/branch2/14   Rule: ...whatever...
    $ cleartool unco -nc your_file.c
    $ cleartool co -nc your_file.c
    Checked out your_file.c
    $
    

    I do not have access to clearcase any longer, so the above is just by (old) memory, but you get the idea. If you are not using the command line, just copy any file to your_file.c, undo checkout and then check out.

提交回复
热议问题