immitev Posted March 6, 2013 Report Share Posted March 6, 2013 Hi, I need to get what is the last changeset number in a workspace (after updating it). Is it possible to retrieve it with the command-line tool? Regards Link to comment Share on other sites More sharing options...
vesk0 Posted March 6, 2013 Report Share Posted March 6, 2013 Hi, You can use find command as described here.Example to find changesets after specific date for specific branch: C:\Program Files\PlasticSCM4\client>cm find "changesets where date > '2013/03/01' and branch = '/main/Task001' " --xml on repository 'default'If anyone can help how to get only last changeset without specifying date! Regards Link to comment Share on other sites More sharing options...
manu Posted March 6, 2013 Report Share Posted March 6, 2013 Hi, I'm a little bit confused about what you are trying to get. I'm not understanding the following sentence: "Last changeset number in workspace" If you want to get the current changeset you are loading you can get it by: cm status --nochanges If you want to get the latest changeset in a branch: cm find branch where name='main' --format={changeset} --nototal Link to comment Share on other sites More sharing options...
manu Posted March 6, 2013 Report Share Posted March 6, 2013 Vesk0 is the last command returning what you want? Link to comment Share on other sites More sharing options...
vesk0 Posted March 6, 2013 Report Share Posted March 6, 2013 Hi, I'm a little bit confused about what you are trying to get. I'm not understanding the following sentence: "Last changeset number in workspace" If you want to get the current changeset you are loading you can get it by: cm status --nochanges If you want to get the latest changeset in a branch: cm find branch where name='main' --format={changeset} --nototal That does the trick. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.