Jump to content

How to find out which is the last changeset number in the workspace


immitev

Recommended Posts

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

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

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

Archived

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

×
×
  • Create New...