Mercurial-在不知道名称的情况下拉出所有远程书签? [英] Mercurial - pull all remote bookmarks without knowing names?

查看:92
本文介绍了Mercurial-在不知道名称的情况下拉出所有远程书签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mercurial中是否有一个选项可以让我拉出所有远程书签而不必事先知道它们的名称?

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

Mercurial Bookmarks页面中,它提到当我克隆存储库,我得到了所有书签.

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.

当鲍勃(Bob)撤消我的更改时,他将得到我创建的所有悬挂式头,可能很难分辨他是要从事哪一个工作.

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.

无论如何,如果他要从我的更改中获得很多支持,我希望他至少获得与之配套的书签,这样他就可以清楚地知道发生了什么! (通常,我的默认分支是我的dev分支,它具有一个"dev"书签和许多其他功能"书签-我不想将它们作为分支,因为它们不会持续很长时间-我希望Bob能够知道立即确定哪个头对应于他要处理的内容.

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).

欢呼.

推荐答案

hg incoming -B向您显示远程书签.

在hg 2.3中,您应该在拉动时自动获得所有远程书签.

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

这篇关于Mercurial-在不知道名称的情况下拉出所有远程书签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆