ClearCase SCM Adapter support for annotate

只愿长相守 提交于 2019-12-04 02:13:32

问题


I wanted to annotate some code with version history. This is easy in Eclipse when using SVN, but the Rational ClearCase SCM Adapter plugin doesn't appear to support it.

I quick Google search reveals that on the command line ClearCase supports annotate via: cleartool annotate -out - -fmt "%Vn |" -rm -nheader util.c

I also found a number of non-free plugins that support annotate. Any free alternatives?


回答1:


The cleartool annotate is the only form of annotation (or "blame") for ClearCase, and isn't available through the official plugins (ClearCase SCM adapter, or the CCRC plugin)

That is why you will fond some non-free option like:

  • annotate add-on
  • Visual Annotate (could have a free edition soon, according to his author Tamir Gefen)
  • FishEye & Crucible, although that stopped 4th April 2012, with FishEye 2.8.



回答2:


In Visual Studio you can set it up to run the cleartool command line option (Using the Tools->External Tools...).
It seems like eclipse has a similar feature ("FAQ How do I add my own external tools?")

Command: \installationpath\cleartool.exe
Arguments: annotate -nheader $(ItemPath)
Initial directory: $(ItemDir)

After it creates the file you can open in your favorite editor.

I only mention it because it might be an option as it is free.
It is easier then using the command line excluding when my project files have the wrong capitalization which causes cleartool to not work and I find myself either update the .vcproj or using the command line.



来源:https://stackoverflow.com/questions/13169735/clearcase-scm-adapter-support-for-annotate

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