git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Mercurial to git converter.

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 14, 2008, 16:48 UTC
Message-ID
<m3wsksotdq.fsf@localhost.localdomain>
In-Reply-To
<alpine.DEB.1.00.0806141648020.6439@racer>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
> On Sat, 14 Jun 2008, Nick Andrew wrote: 
>> Stelian Pop <stelian <at> popies.net> writes:
>> 
>>> 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. [...]
[...]
 
Show 5 quoted lines
> FWIW I switched my local mercurial2git conversion to the hg-fast-export 
> solution from 
> 
> 	git://repo.or.cz/fast-export.git
>
[...] 
> Originally, I did not try it because I thought it cannot operate in 
> incremental mode, but it can.

It can, or it can recently thanks to --export-marks / --import-marks work?

It is nice that SCM-to-SCM converters seems to standarize on using fast-import language as intermediary.

IIRC fast-import by Shawn O. Pearce started as fast backend for first cvs2git (unfortunately fork and not extension of cvs2svn) by Jon Smirl (?) around time when Mozilla looked for SCM to move to from CVS. (In the end they choose Mercurial, mainly because of better Windows support, and I think also better Windows GUI; I wonder how it works for them now?).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Johannes SchindelinNext: Shawn O. Pearce
Message 11 of 15 in “Mercurial to git converter.”
  1. Stelian PopJan 11, 2007
  2. Jakub NarebskiJan 12, 2007
  3. Stelian PopJan 12, 2007
  4. Add hg-to-git conversion utility.Stelian Pop, Jan 12, 2007
  5. Shawn O. PearceJan 12, 2007
  6. Stelian PopJan 12, 2007
  7. Junio C HamanoJan 12, 2007
  8. Stelian PopJan 12, 2007
  9. Nick AndrewJun 14, 2008
  10. Johannes SchindelinJun 14, 2008
  11. Jakub NarebskiJun 14, 2008
  12. Shawn O. PearceJun 16, 2008
  13. Nick AndrewJun 16, 2008
  14. Mike HommeyJun 16, 2008
  15. Johannes SchindelinJun 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.