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

Re: git-svn: .git/svn disk usage

From
David Brown <git@davidb.org>
Date
Dec 3, 2007, 06:46 UTC
Message-ID
<20071203064603.GA18583@old.davidb.org>
In-Reply-To
<4753A43F.9060303@obry.net>
On Mon, Dec 03, 2007 at 07:37:51AM +0100, Pascal Obry wrote:
Show 9 quoted lines
>Ollie,
>
>> I'm curious if other developers have run into this issue.  If so, are
>> there any proposals / plans for improving the storage of git-svn
>> metadata?
>
>Did you run "git gc" after importing code form the subversion
>repository? On my side I found that it has reduced drastically the size
>of the local Git repository.

I think the original poster is probably finding the space in the .git/svn directory. 'git-svn' keeps an index file for every branch in SVN.

I suspect it does this for speed, at least on a large import, since the SVN commits will come across numerically, affecting the branches out of order.

However, the index could fairly easily be extracted from git (since that is what it normally does). In this case, where all of the indexes take significant space if this is worth it.

Ollie, if you look in these svn branch directories, is most of the space taken up with files called 'index'?

Browsing through the few svn clones that I have, the space seems to be roughly split between 'index' files and 'unhandled.log' files.

Dave
Previous: Pascal ObryNext: Kelvie Wong
Message 3 of 10 in “git-svn: .git/svn disk usage”
  1. Ollie WildDec 3, 2007
  2. Pascal ObryDec 3, 2007
  3. David BrownDec 3, 2007
  4. Kelvie WongDec 3, 2007
  5. Ollie WildDec 3, 2007
  6. Karl HasselströmDec 4, 2007
  7. David VoitDec 3, 2007
  8. Eric WongDec 5, 2007
  9. Steven GrimmDec 5, 2007
  10. Eric WongDec 6, 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.