2

I have a number of files that were automatically checked out (due to how I'd set Eclipse's ClearCase plugin up) when I edited them. I now realize that those should have been Hijacked instead.

Is their a direct method for converting from checked out to hijacked?

I realize I could undo the checkout and have it generate the .keep file, then hijack the file, and paste the .keep file's contents into the hijacked file, but I have several dozen files to fix and would prefer not to have to do the workaround if possible.

TIA

Todd
  • 2,829
  • 5
  • 34
  • 56

1 Answers1

2

Once a file is checked out, it will be remember by ClearCase (server) as checked out.
So unco (undo checkout) remains the safest route, with a command similar to "How to create undo checkout recursively in clearcase in context menu".
(on Unix, it is easier to script)

You only need to use unco -keep, instead of unco -rm, in order to generate the .keep files.

Finally, a simple script can:

  • find all the .keep file
  • copy them over the (not checked out) respective file: that is enough to hijack them.
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250