hg-git and git tags handling

Edouard Gomez ed.gomez at free.fr
Sun Jul 19 17:38:14 CDT 2009


Le Sun, 19 Jul 2009 21:51:27 +0100, Abderrahim Kitouni wrote :
> git tags aren't version-controlled (as they aren't supposed to change),
> and in this respect they are very similar to hg bookmarks.

Yay, git branches could be mapped to hg bookmarks.

I use to work with git mirrored projects such as VLC. The project has
a few branches as well as a few tags. And during the conversion
process, tags are handled but branches are not.

This results in a painly code bootstrap as i'm always obliged
to first search all heads from a known tag, and then issue the
correct "hg up -C nodeid" call.

So i use to bookmark branch heads manually, but then it happens
that hg wire protocol doesn't have any way to clone the information.
So my converted tree has bookmarks, but i have to copy them manually
after a clone.

I'd wish that wire protocol could be made a little bit more flexible
so that extensions could add their own bitstream onto the wire after
all important core hg bits were already transmitted. Of course, the
client and server would have to enable the extension on both ends.

The new wire protocol (http://mercurial.selenic.com/wiki/WireProtocolNG) 
doesn't seem to include any protocol extension mechanism such as this.

No bookmark cloning... no good git branch support after conversion.

-- 
Edouard Gomez



More information about the Mercurial-devel mailing list