ClearCase SCM Adapter support for annotate

后端 未结 2 1539
小蘑菇
小蘑菇 2021-01-16 11:16

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.

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-16 11:33

    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.

提交回复
热议问题