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 :-)
source
share