hampsterx Posted May 24, 2012 Report Share Posted May 24, 2012 hi there, hopefully easy question. given a file name how can I use "cm" to get the details of the last changeset (on a specifc branch) that affected that file. I have looked at "history" but not sure how to specify the branch Cheers, TiM Link to comment Share on other sites More sharing options...
psantosl Posted May 26, 2012 Report Share Posted May 26, 2012 Why don't you just look at the history? You can sort by branch. A different option is: cm find revs where item=yourfile.txt and branch='/yourbranch' Link to comment Share on other sites More sharing options...
hampsterx Posted May 29, 2012 Author Report Share Posted May 29, 2012 Hi Pablo, Actually I am trying to script it so that our bug tracker knows who last worked on a file when a website error gets tripped up by simply looking at the stack trace and being able to associate the most recent change on that file to the developer. cm find revs works pefect thanks. BTW using history command can you restrict to to a branch? I only want history from /main branch. Cheers, and long live plastic!! TiM Link to comment Share on other sites More sharing options...
psantosl Posted May 29, 2012 Report Share Posted May 29, 2012 Excellent! Link to comment Share on other sites More sharing options...
manu Posted May 29, 2012 Report Share Posted May 29, 2012 BTW using history command can you restrict to to a branch? I only want history from /main branch. I'm afraid that it's not possible, on the other hand you can apply some --format tricks to help you with the parser. For example, this is going to retrieve only the branch info of the history: cm hist File.txt --format={2} Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.