Re: Mercurial to git converter.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 14, 2008, 15:53 UTC
- Message-ID
- <alpine.DEB.1.00.0806141648020.6439@racer>
- In-Reply-To
- <loom.20080614T101342-542@post.gmane.org>
Hi,
On Sat, 14 Jun 2008, Nick Andrew wrote:
Show 13 quoted lines
> Stelian Pop <stelian <at> popies.net> writes: > > > I switched recently from Mercurial to git for some of my projects, and > > needed a conversion tool with branch support (unlike tailor). I didn't > > find any, so I ended up writing my own one. > > > > hg-to-git.py can probably be greatly improved (it's a rather crude > > combination of shell and python) but it does already work quite well > > for me. [...] > > Thanks for that. One small problem is that it does not get the changelog > right if a commit is made on a local branch. It thinks the "branch:" > line is part of the changelog.
FWIW I switched my local mercurial2git conversion to the hg-fast-export solution from
git://repo.or.cz/fast-export.git
Even if it's documentation leaves almost completely to be desired, after figuring out how to operate it by reading the source, it works pretty nicely, and fast, because it uses fast-import.
Originally, I did not try it because I thought it cannot operate in incremental mode, but it can.
Ciao, Dscho