How to search ClearCase repositories

我怕爱的太早我们不能终老 提交于 2020-01-03 03:40:12

问题


I just switched to use ClearCase and want to know if it has any build-in tool or plugin to do across VOBs search. I previously used Opengrok to index the Subversion and Git repositories by checking the head out nightly and I think I can do the same for Clearcase. But before that, I want to know if there is any existing ClearCase capability for so. I definitely can leverage the file system (i.e. Windows File Explorer) but it is not efficient enough for developers.

Or suggestions on any other good practice for searching ClearCase code will be appreciated.


回答1:


The main option is cleartool find -avobs, but the best practice is to limit the search to:

  • one vobs
  • the elements visible (meaning selected) by a specific ClearCase view

That is the fastest way to get results.

The IBM page "Additional examples of the cleartool find command" illustrates many type of search you can do in a Vob.
I use some of them in:

  • "ClearCase find and exec with %CLEARCASE_PN% in cmd always returns same element"
  • "Find files in Clearcase view newer than a specific date?"
  • "Clearcase protect -chmod +x recursively all *.exe"


来源:https://stackoverflow.com/questions/23831614/how-to-search-clearcase-repositories

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