change, transform convert branches to bookmarks
Simon King
simon at simonking.org.uk
Fri Sep 2 11:42:36 UTC 2016
On Fri, Sep 2, 2016 at 12:24 PM, Uwe Brauer <oub at mat.ucm.es> wrote:
> Hi
>
> I usually prefer named branches over bookmarks because I understand the
> graph better. However in the current world most people use git and if I
> want to collaborate with them I need the hg-git plugin, which works
> fine, but requires to use use bookmarks for branching not named
> branches.
>
> So the question is: is it possible for example by using «rebase» in a
> clever way to transform a repo such that the named brances are replaced
> by bookmarks?
>
> Uwe Brauer
>
One option is to use "hg convert" with the "--branchmap" option to
produce a new repository without any named branches. If you've only
got a small number of branches, it should be fairly easy to create the
bookmarks by hand afterwards.
https://www.mercurial-scm.org/wiki/ConvertExtension#A--branchmap
Simon
More information about the Mercurial
mailing list