ClearCase UCM: Need to See Content of Deleted File
Asked Answered
H

1

1

Using Clearcase UCM and ClearCase Explorer, I some time ago deleted a file (command-line equivalent would be rmname). I now need to see the content of this file, but of course it is not shown as being in the directory. How may I get at the file's content (i.e. how do Ilook at the previous directory version--the version that existed before the delete)?

Heptameter answered 29/3, 2012 at 21:49 Comment(0)
C
2

You can follow a process similar to the IBM technote "Restore an element that has been rmnamed", which will allow you to find back the right version.

If you know the file name, you can search for its most recent version with:

cleartool find . -name "filename" -nvisible -print

If you are searching in a dynamic view, you should get a result like:

M:\view\vob\directory@@\main\4\<missing-element-name>

This is an extended path, which you can directly access in a dynamic view:

type M:\view\vob\directory@@\main\4\<missing-element-name>

See also "Get specific version of unloaded file with cleartool"

Cornellcornelle answered 30/3, 2012 at 1:18 Comment(1)
Note: if your file was unreferenced and put in "lost+found", see www-01.ibm.com/support/docview.wss?rs=984&uid=swg21120317Cornellcornelle

© 2022 - 2024 — McMap. All rights reserved.