How to update a branch by name?

I just did

hg up mybranch

So far, which basically works fine, but we have several branches that just have numbers for their name. How upshould distinguish between version number and branch name? It doesn't seem to support the parameter -b, and I don’t know about any other method of updating the branch by name, and what is the correct way?

+5
source share
1 answer

Use branch()the replacement operator as follows:

$ hg update "branch(123)"

Thus, you can distinguish between version numbers, branch names, tags, etc., if you manage to create an ambiguous name. Of course, it is not recommended to create such names in the first place, but I'm sure that you already understood this :-)

+6
source

All Articles