Lets say I have a directory at \testfolder, and the latest is currently at /main/10. I know that the operation resulting in testfolder@@/main/6 is to remove a file named test.txt.
What's a sequence of cleartool operations that can be done in a script that will take "testfolder@@/main/6" and "test.txt" as input, and will cat out the contents of test.txt as of that time?
One way I can think of is to get the time of /main/6 operation, create a view with config spec -time set to that time, and then cat the test.txt at the directory. But I'm wondering if I can do this in a easier way that doesn't involve manipulating config specs, perhaps through "cleartool find" and extended path names
If you are using a dynamic view, you should be explore directly the extended pathnames of
testfolder
in order to access the content oftest.txt
.The OP adds:
Technically, this is a case of evil twins: 2 objects of the same names exists (one in
testfolder@@/main/5
, one intestfolder@@/main/10
) with different history.You need, to get back the former
test.txt
(a like rollbacking a file), remove your currenttest.txt
and get back the old one currently moved to Folder2. (cleartool move
)