How to find element(s) which are not present in the clearcase recursively?

柔情痞子 提交于 2019-11-27 16:45:00

问题


How to find element(s) which are not present in the clearcase recursively , let us say from project root folder i want to know the list of files which are not part of clearcase. Can some one help me on this?


回答1:


First you need to find them through the command line interface, in a DOS session for instance:

for /F "usebackq delims=" %i in (`cleartool ls -r -nxn ^| find /V "Rule:" ^| find /V "hijacked" ^| find /V "eclipsed"`) do @echo "%i"

(See the discussion on how to find private files in this SO answer)

Then, you can add this command to the ClearCase menu entries from the Windows explorer, follwing the process described in the ten ben scripts article.
See also this SO question and that one for example of menu entries commands (not related to your question, but mentioning a few tip about the commands)




回答2:


If it's a snapshot view, then from the project root use:

cleartool ls -view -r

If it's a dynamic view, then from anywhere use:

cleartool lsp




回答3:


Usually Clearcase plugin (with RSA I am sure it does) gives an option "Find Resources to add to source control".. This will list all files which are not in ClearCase repository.. Hope this helped.. :-)



来源:https://stackoverflow.com/questions/2099057/how-to-find-elements-which-are-not-present-in-the-clearcase-recursively

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