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

speeding up git-svn when directories are copied?

From
Karl Hasselström <kha@treskal.com>
Date
Apr 23, 2007, 14:16 UTC
Message-ID
<20070423141601.GA5797@diana.vm.bytemark.co.uk>

When importing a whole repository, git-svn currently takes a _lot_ of time. Almost all of it seems to be spent getting the full text of each and every file when a tag or new branch is created.

If I remember correctly (but it was quite a while since I looked at it), git-svnimport didn't ask the Subversion server for all the files; it just noticed when the server said that a new directory was a copy of an old directory, which makes them just as fast as any other commit that doesn't change a gazillion files. (I've had an import running for a few hours now, and have checked on it about a dozen times; every single time, it was importing a new tag or branch. This suggests that making these go as fast as regular commits would speed up the import by more than a factor 10.)

Have you looked at doing this with git-svn? If it's not on your to-do list, I might take a stab at it at some point. But I only speak the copy-n-paste dialect of perl, so I'll need to find a largish block of uninterrupted time first. :-)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Next: Eric Wong
Message 1 of 4 in “speeding up git-svn when directories are copied?”
  1. Karl HasselströmApr 23, 2007
  2. Eric WongApr 24, 2007
  3. Karl HasselströmApr 24, 2007
  4. Eric WongApr 26, 2007

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.