Mercurial - pull all remote bookmarks without knowing names?

依然范特西╮ 提交于 2019-12-23 12:34:09

问题


Is there an option in Mercurial that allows me to pull all remote bookmarks without having to know their names in advance?

On the Mercurial Bookmarks page it mentions that when I clone a repository, I get all the bookmarks.

However, I'm in the situation where I already have the repository, create a few heads, each with a bookmark explaining what they are, and push all (including the bookmarks) to the server.

When Bob pulls my changes he is going to get all the hanging heads I've created and it may be hard to tell which one he is meant to work on.

If he's going to get lots of hanging heads from my changes anyway, I want him to at least get the bookmarks that go with them so it's clearer to him what's going on! (Typically my default branch is my dev branch, which has a 'dev' bookmark and numerous other 'feature' bookmarks - I don't want these as branches as they won't last for long - I want Bob to be able to know straight away which head corresponds to what he wants to work on).

cheers.


回答1:


hg incoming -B shows you the remote bookmarks.

In hg 2.3 you should automatically get all remote bookmarks on pull.

  • bookmarks: pull new bookmarks from remote by default

→ http://mercurial-scm.org/wiki/WhatsNew#Mercurial_2.3_.282012-08-01.29



来源:https://stackoverflow.com/questions/11661904/mercurial-pull-all-remote-bookmarks-without-knowing-names

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