问题
In a mercurial repo you can have a branch, tag and bookmark all with the same name. Which do you get if you do
hg update foo
or
hg clone --updaterev foo somerepo
I.e. what is the priority between branches, tags and bookmarks? Experiments show the order to be bookmark - tag - branch, but I can not find documentation for this. Can I rely on this?
From hg help revsets you can find syntax to specify what you mean, e.g. branch(foo) (may need quotes depending on the name and also the shell).
来源:https://stackoverflow.com/questions/29920995/priority-of-revision-types-in-mercurial