rmashal Posted June 30, 2014 Report Share Posted June 30, 2014 I want to write a utility that uses 'cm ann' command, which does the following: Display output of the annotate command. Let the user choose a line. Get the parent changeset of that line. 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#26935This results with: Incorrect object specification MyFile#br:/master#26935Sometimes 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:26935The result is: MyFile#cs:26935 does not exist. Using the cs number from the {rev} field on the 'cat' command:cm cat MyFile#cs:26935This 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 More sharing options...
manu Posted July 1, 2014 Report Share Posted July 1, 2014 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.