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

Re: Mercurial to git converter.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jun 16, 2008, 02:24 UTC
Message-ID
<20080616022435.GS11793@spearce.org>
In-Reply-To
<m3wsksotdq.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> wrote:
Show 12 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> > 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?
The recent --export-marks/import-marks work you speak of was adding
these options to git-fast-export, making it easier to perform an
incremental _export_ from Git to another SCM.  I believe Dscho
is speaking about an Hg->Git conversion, which would rely on
git-fast-import's previously existing --export-marks/import-marks
feature.
 
> It is nice that SCM-to-SCM converters seems to standarize on using
> fast-import language as intermediary.  

Turns out the little format we knocked together for this is able to represent most conversions for SCMs. I'm just happy users are easily able to convert into Git.

Show 6 quoted lines
> 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?).

Your history is correct. The current version of cvs2svn also supports cvs2git, and may also support cvs2bzr by using the git-fast-import backend and bzr-fast-import as the parser.

-- 
Shawn.
Previous: Jakub NarebskiNext: Nick Andrew
Message 12 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.