Priority of revision types in mercurial

只谈情不闲聊 提交于 2019-12-25 15:31:28

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!