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

Re: hg-to-git performance on big repos

From
Theodore Tso <tytso@mit.edu>
Date
Mar 22, 2008, 14:27 UTC
Message-ID
<20080322142758.GT7991@mit.edu>
In-Reply-To
<20080322162618.K47359@geo.geo.loc>
On Sat, Mar 22, 2008 at 04:34:22PM +0300, Fedor V. Sergeev wrote:
Show 10 quoted lines
> Folks,
> 
> I'm trying to convert a relatively big Mercurial repo (70K commits)
> into Git using contrib/hg-to-git.  It initially goes fine but starts
> to slow down nearly exponentially as the number of converted
> changesets goes up.
> 
> git-fast-import seems to just hang around, while all the work (100% cpu)
> is spent in that python thing. It does not eat up memory, pstack looks
> fine, but after some 10K commits it just crawls.

I don't know if it will be better, but at the time when I needed to convert e2fsprogs, I liked the results of hg-fast-export, found at:

        url = git://repo.or.cz/fast-export.git
You might hg-fast-import and see if it does any better for your repo.
Does it have a large number of branches or tags, by any chance?
     	       	     	       		   	 - Ted
Previous: Fedor V. Sergeev
Message 2 of 2 in “hg-to-git performance on big repos”
  1. Fedor V. SergeevMar 22, 2008
  2. Theodore TsoMar 22, 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.