ClearCase UCM: Need to See Content of Deleted File

那年仲夏 提交于 2019-12-11 07:17:36

问题


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"



来源:https://stackoverflow.com/questions/9934086/clearcase-ucm-need-to-see-content-of-deleted-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!