Report Finding latest changeset id on a branch in General Posted March 14, 2022 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?
Finding latest changeset id on a branch
in General
Posted
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?