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)?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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"