Jump to content

How to specify revision for the 'ann' command?


rmashal

Recommended Posts

I want to write a utility that uses 'cm ann' command, which does the following:

  1. Display output of the annotate command.
  2. Let the user choose a line.
  3. Get the parent changeset of that line.
  4. Continue to 1 with the file's revision from the parent changeset.

My question is: How should I specify the revision for the 'ann' command?

 

I tried the following:

  • Taking the {rev} field from the annotate output:
    cm ann MyFile#br:/master#26935
    This results with: Incorrect object specification MyFile#br:/master#26935
    Sometimes I get: Error: Object reference not set to an instance of an object.
     
  • Using the cs number from the {rev} field:
    cm ann MyFile#cs:26935
    The result is: MyFile#cs:26935 does not exist.
     
  • Using the cs number from the {rev} field on the 'cat' command:
    cm cat MyFile#cs:26935
    This works! The file is listed on the console.
     
  • Using annotate from the GUI on that file's version works too.

I'm using version 5.0.44.519 

 

Thanks,

Ronen Mashal

Link to comment
Share on other sites

:( I'm sorry the annotate command is only aware of local paths so you can't query for a certain revision as you do with the cat command.

 

Please add this to our user voice system if you would like to have it implemented -> plasticscm.uservoice.com/forums/15467-general

There's no technical reason to have it not implemented, we just didn't notice it....

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...