Jump to content

Finding latest changeset id on a branch


S.P

Recommended Posts

Hey, I'm currently trying to figure out how to find the latest changeset on a branch. I can run the following command
 

cm find branch where name='branchName' on repositories 'myrepository' --format={changeset} --nototal

but this fails if we have a branch structure like the following
 

/main/branch
/main/branch2/branch

This happens because to my knowledge the 'name' field does accept the full path as a value.

Is there a way to get the head changeset id with the full branch path?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...