Named branches and local branches
Peer Sommerlund
peer.sommerlund at gmail.com
Sun Oct 5 20:27:51 UTC 2008
2008/10/5 Imobach González Sosa <imobachgs at gmail.com>
>
> The only thing I miss in Mercurial is a better branch management. For
> example, in Git you can create a branch (call it "fixbug"), work on
> it, merge and make it disappear. I guess that the "mercurial-way" is
> cloning the repository, working on it and merging again, because named
> branches can't be removed[1].
In Mercurial you can work on a named branch, then collapse it into a single
changeset on the default branch, and finally remove the named branch. This
is described on the wiki [1].
The patch branch extension [2] (under development) does something similar,
but it is not yet ready. I believe this will be the preferred way to manage
work on its way upstream.
Then the officially supported MQ extension [3] allows you to work with
patches (and merge them when done), but compared to working with named
branches it is less flexible and harder to work with.
[1] http://www.selenic.com/mercurial/wiki/index.cgi/ConcatenatingChangesets
[2] http://arrenbrecht.ch/mercurial/pbranch/
[3] http://www.selenic.com/mercurial/wiki/index.cgi/MqExtension
Regards,
Peer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081005/12114f2a/attachment-0002.html>
More information about the Mercurial
mailing list