If you have ever removed an element in Clearcase and later decided that you needed it, the following steps can help out. Remember, that this will not work if you deleted the item with the rmelem command. These steps effectively create a link to a previous version of the parent directory that contained the element you removed. When you delete an element, you are not modifying the element itself, but the directory in which the element lives.
Note!
Rmelem should never be used unless you are absolutely sure that you want to get rid of a file or directory forever.
#ct checkout foo
#ct rmname foo/bar.pl // removed file
#ct ln foo@@/main/LATEST/bar.pl foo/bar.pl // recovered file
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment