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

Re: Errors importing Apache Synapse SVN using Git

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Jul 10, 2008, 22:02 UTC
Message-ID
<20080710220253.GD2325@atjola.homenet>
In-Reply-To
<g55130$n3i$1@ger.gmane.org>
On 2008.07.10 14:59:11 +0200, Michael J Gruber wrote:
Show 30 quoted lines
> Asankha C. Perera venit, vidit, dixit 10.07.2008 14:01:
>> Hi All
>>
>> I am an Apache Synapse developer, and want to import the Synapse SVN  
>> repo into Git, so that Ohloh can properly get the Synapse history  
>> (http://www.ohloh.net/topics/1326?page=1#post_6287)
>>
>> However, when I try the command: "git svn clone --trunk=trunk  
>> --tags=tags --branches=branches 
>> http://svn.apache.org/repos/asf/synapse" it seems to take forever, (or 
>> at least until the next network glitch), and keeps filling up a file 
>> with just plain zeros ("0") :  
>> ./.git/svn/trunk/.rev_db.13f79535-47bb-0310-9956-ffa450edef68
>>
>> Can someone try the above command on the Synapse repo and tell me what 
>> I can do to import from the SVN?
>
> "svn log" takes forever on that repo, too. Current rev seems to be  
> 675546, and the synapse path does not exist in early revisions. Knowing  
> the initial revision would help, then you could save "git svn" from  
> having to comb through (supposedly) tens of thousands of irrelevant revs.
>
> I just checked out trunk using svn 1.4.6, "svn log ." takes forever in  
> the root dir. So the svn repo seems to be largely unusable, at least  
> when accessed from svn 1.4.6 clients (the server is 1.5.0, I see).
>
> Okay, I bisected it and got r234477 as the beginning of time for  
> synapse. "svn log -r 234477:HEAD" is still painful.
>
> You may want to fetch 1000 revs each or so from there each time.

Also, upgrading git to 1.5.6.2 might be a good idea. It doesn't use the .revdb file format anymore, but a more efficient .revmap file. And it has quite a few performance improvements (although they won't help against the primary issue with that svn server). Don't use 1.5.6/1.5.6.1, they have a git-svn bug that can lead to corrupted clones (just in case that your distro has packages for those versions but not yet got 1.5.6.2).

Björn
Previous: Michael J GruberNext: Michael J Gruber
Message 3 of 6 in “Errors importing Apache Synapse SVN using Git”
  1. Asankha C. PereraJul 10, 2008
  2. Michael J GruberJul 10, 2008
  3. Björn SteinbrinkJul 10, 2008
  4. Michael J GruberJul 11, 2008
  5. Eric WongJul 14, 2008
  6. Michael J GruberJul 14, 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.