{"thread":{"id":"17146","subject":"git-svn fails to fetch repository","startedAt":"2009-01-13T14:53:08Z","lastAt":"2009-01-23T13:22:18Z","messageCount":21,"participants":["Vladimir Pouzanov","Michael J Gruber","Björn Steinbrink","Jay Soffian","Eric Wong","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"100277","messageId":"loom.20090113T145019-951@post.gmane.org","threadId":"17146","inReplyTo":null,"subject":"git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-13T14:53:08Z","receivedAt":"2009-01-13T14:53:08Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Hi all,\n\nI'm trying to fetch svn repository:\ngit svn clone http://qsb-mac.googlecode.com/svn/trunk qsb-mac\n\nThis one fails at random time at:\nTemp file with moniker ' at /opt/local/lib/perl5/site_perl/5.8.8/Git.pm\nline 1011.\n\nI know nothing about perl, so can't make anything out of that. Any hints?\n\nRunning Git 1.6.1, perl 5.8.8, OSX 10.5.6\n\nPS: Please CC me on answer.\n"},{"id":"100278","messageId":"loom.20090113T150220-345@post.gmane.org","threadId":"17146","inReplyTo":"loom.20090113T145019-951@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-13T15:03:59Z","receivedAt":"2009-01-13T15:03:59Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Also just tried on linux box (git 1.6.0.4, perl 5.8.8). Got all the revisions\nbut git segfaulted at the end:\n...\nr21 = e839272549fd746cf45542a7aa6cb151ae3813da (trunk)\nChecked out HEAD:\n  http://qsb-mac.googlecode.com/svn/trunk r21\nSegmentation fault\n"},{"id":"100294","messageId":"496CD49D.1070201@drmicha.warpmail.net","threadId":"17146","inReplyTo":"loom.20090113T150220-345@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-01-13T17:51:25Z","receivedAt":"2009-01-13T17:51:25Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Vladimir Pouzanov venit, vidit, dixit 01/13/09 16:03:\n> Also just tried on linux box (git 1.6.0.4, perl 5.8.8). Got all the revisions\n> but git segfaulted at the end:\n> ...\n> r21 = e839272549fd746cf45542a7aa6cb151ae3813da (trunk)\n> Checked out HEAD:\n>   http://qsb-mac.googlecode.com/svn/trunk r21\n> Segmentation fault\n\nI'm getting\n...\nr21 = e839272549fd746cf45542a7aa6cb151ae3813da (git-svn)\nChecked out HEAD:\n  http://qsb-mac.googlecode.com/svn/trunk r21\n\nThis is with git 1.6.1rc4 (yeah I should have updated), perl 5.8.8 and\nsvn 1.4.6 on Linux. Same with git 1.6.0.6, perl 5.10.0 and svn 1.5.4 on\nanother box. The one git-svn change between 1.6.0.4 and 1.6.0.6 should\nnot matter because you don't have branches. What's your svn version?\n\nMichael\n"},{"id":"100298","messageId":"loom.20090113T185918-397@post.gmane.org","threadId":"17146","inReplyTo":"496CD49D.1070201@drmicha.warpmail.net","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-13T19:01:28Z","receivedAt":"2009-01-13T19:01:28Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Michael J Gruber <git <at> drmicha.warpmail.net> writes:\n> This is with git 1.6.1rc4 (yeah I should have updated), perl 5.8.8 and\n> svn 1.4.6 on Linux. Same with git 1.6.0.6, perl 5.10.0 and svn 1.5.4 on\n> another box. The one git-svn change between 1.6.0.4 and 1.6.0.6 should\n> not matter because you don't have branches. What's your svn version?\n\nsvn, version 1.5.5 (r34862) on OSX (where perl fails with error) and\nsvn, version 1.5.0 (Release Candidate \n5) on Linux\n(where perl segfaults somewhere in apr).\n"},{"id":"100311","messageId":"20090113203922.GD30404@atjola.homenet","threadId":"17146","inReplyTo":"loom.20090113T185918-397@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2009-01-13T20:39:22Z","receivedAt":"2009-01-13T20:39:22Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2009.01.13 19:01:28 +0000, Vladimir Pouzanov wrote:\n> Michael J Gruber <git <at> drmicha.warpmail.net> writes:\n> > This is with git 1.6.1rc4 (yeah I should have updated), perl 5.8.8 and\n> > svn 1.4.6 on Linux. Same with git 1.6.0.6, perl 5.10.0 and svn 1.5.4 on\n> > another box. The one git-svn change between 1.6.0.4 and 1.6.0.6 should\n> > not matter because you don't have branches. What's your svn version?\n> \n> svn, version 1.5.5 (r34862) on OSX (where perl fails with error) and\n> svn, version 1.5.0 (Release Candidate \n> 5) on Linux\n> (where perl segfaults somewhere in apr).\n\nIs that Linux box using Gentoo? If so, try emerging subversion with -dso\nin your build flags.\n\nCloning the svn repo you mentioned works fine with\ngit-svn version 1.6.1.40.g8ea6a (svn 1.5.1)\n\n(On debian sid)\n\nBjörn\n"},{"id":"100312","messageId":"loom.20090113T204616-845@post.gmane.org","threadId":"17146","inReplyTo":"20090113203922.GD30404@atjola.homenet","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-13T20:46:55Z","receivedAt":"2009-01-13T20:46:55Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Björn Steinbrink <B.Steinbrink <at> gmx.de> writes:\n> Is that Linux box using Gentoo? If so, try emerging subversion with -dso\n> in your build flags.\n\nYeah, that's gentoo. Will try rebuilding svn now. Any hints about OSX\nperl problem?\n"},{"id":"100313","messageId":"76718490901131312j28f8283bi94f55000e70c532e@mail.gmail.com","threadId":"17146","inReplyTo":"loom.20090113T204616-845@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-13T21:12:38Z","receivedAt":"2009-01-13T21:12:38Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Tue, Jan 13, 2009 at 3:46 PM, Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> Björn Steinbrink <B.Steinbrink <at> gmx.de> writes:\n>> Is that Linux box using Gentoo? If so, try emerging subversion with -dso\n>> in your build flags.\n>\n> Yeah, that's gentoo. Will try rebuilding svn now. Any hints about OSX\n> perl problem?\n\nYour original email doesn't appear to provide the complete error\nmessage. I'm on OS X 10.5.6 (Intel), git 1.6.1.77.g81ea1, system perl\n(/usr/bin/perl - 5.8.8) and I'm able to clone okay:\n\n$ which git\n/opt/git/bin/git\n$ git version\ngit version 1.6.1.77.g81ea1\n$ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsb-mac\n...\nChecked out HEAD:\n  http://qsb-mac.googlecode.com/svn/trunk r21\n\nj.\n"},{"id":"100314","messageId":"loom.20090113T211437-12@post.gmane.org","threadId":"17146","inReplyTo":"76718490901131312j28f8283bi94f55000e70c532e@mail.gmail.com","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-13T21:16:09Z","receivedAt":"2009-01-13T21:16:09Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Jay Soffian <jaysoffian <at> gmail.com> writes:\n> Your original email doesn't appear to provide the complete error\n> message. I'm on OS X 10.5.6 (Intel), git 1.6.1.77.g81ea1, system perl\n> (/usr/bin/perl - 5.8.8) and I'm able to clone okay:\n\n$ git version\ngit version 1.6.1\n$ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsb-mac\nInitialized empty Git repository in /Users/farcaller/temp/qsb-mac/.git/\nr1 = 810fe584c48b884460b5403a28bc61d872452b93 (git-svn)\n\tA\texternals/BSJSONAdditions/NSDictionary+BSJSONAdditions.m\n\tA\texternals/BSJSONAdditions/Example/Unit Tests/Test\nFiles/json_test_valid_01.txt\n\tA\texternals/BSJSONAdditions/Example/Unit Tests/Test\nFiles/json_test_valid_02.txt\n\tA\texternals/BSJSONAdditions/Example/version.plist\n\tA\texternals/BSJSONAdditions/Example/main.m\n\tA\texternals/BSJSONAdditions/Example/Unit Tests/Test\nFiles/json_test_valid_03.txt\n\tA\texternals/BSJSONAdditions/NSArray+BSJSONAdditions.m\n\tA\texternals/BSJSONAdditions/BSJSON.h\n\tA\texternals/BSJSONAdditions/NSDictionary+BSJSONAdditions.h\nTemp file with moniker ' at /opt/local/lib/perl5/site_perl/5.8.8/Git.pm line\n1011.\n\nGit, subversion and perl are from macports:\n$ port info perl5\nperl5 @5.8.8, Revision 2 (lang)\n\n$ port info git-core\ngit-core @1.6.1 (devel)\nVariants:    bash_completion, doc, gitweb, svn\n\n$ port info subversion\nsubversion @1.5.5 (devel)\nVariants:    bash_completion, (-)darwin_7, mac_os_x_server_mod_dav_svn,\nmod_dav_svn, no_bdb, no_neon, tools, unicode_path, (-)universal\n"},{"id":"100316","messageId":"76718490901131320y6e3312f1o96b99407f318fafd@mail.gmail.com","threadId":"17146","inReplyTo":"76718490901131312j28f8283bi94f55000e70c532e@mail.gmail.com","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-13T21:20:46Z","receivedAt":"2009-01-13T21:20:46Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Tue, Jan 13, 2009 at 4:12 PM, Jay Soffian <jaysoffian@gmail.com> wrote:\n> Your original email doesn't appear to provide the complete error\n> message. I'm on OS X 10.5.6 (Intel), git 1.6.1.77.g81ea1, system perl\n> (/usr/bin/perl - 5.8.8) and I'm able to clone okay:\n\nBTW, since it's the system perl, it's also the system Perl subversion\nbindings, which means 1.4.4.\n\nIOW, even though I have MacPorts installed, I define NO_DARWIN_PORTS=1\nduring install. I've attached the script I use for compiling &\ninstalling git for reference.\n\nj.\n"},{"id":"100317","messageId":"76718490901131328x5ec30805u3cae29132defd695@mail.gmail.com","threadId":"17146","inReplyTo":"loom.20090113T211437-12@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-13T21:28:01Z","receivedAt":"2009-01-13T21:28:01Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Tue, Jan 13, 2009 at 4:16 PM, Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> Temp file with moniker ' at /opt/local/lib/perl5/site_perl/5.8.8/Git.pm line\n> 1011.\n\nAh \"throw Error::Simple(...)\" w/multiple arguments does not work as\nthe caller thought. Can you manually edit\n/opt/local/lib/perl5/site_perl/5.8.8/Git.pm and edit lines 1011 and\n1012. So instead of:\n\n                if ($TEMP_FILES{$$temp_fd}{locked}) {\n                        throw Error::Simple(\"Temp file with moniker '\",\n                                $name, \"' already in use\");\n                }\n\nIt will look like:\n\n                if ($TEMP_FILES{$$temp_fd}{locked}) {\n                        throw Error::Simple(\"Temp file with moniker '\" .\n                                $name . \"' already in use\");\n                }\n\n(i.e., replace the commas with dots.)\n\nPerhaps this will help in tracking down the problem.\n\nj.\n"},{"id":"100318","messageId":"loom.20090113T213400-985@post.gmane.org","threadId":"17146","inReplyTo":"76718490901131328x5ec30805u3cae29132defd695@mail.gmail.com","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-13T21:34:38Z","receivedAt":"2009-01-13T21:34:38Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Jay Soffian <jaysoffian <at> gmail.com> writes:\n> Perhaps this will help in tracking down the problem.\n\n$ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsb-mac\nInitialized empty Git repository in /Users/farcaller/temp/qsb-mac/.git/\nr1 = 810fe584c48b884460b5403a28bc61d872452b93 (git-svn)\nTemp file with moniker 'svn_delta' already in use at /opt/local/lib/perl5/\nsite_perl/5.8.8/Git.pm line 1011.\n"},{"id":"100321","messageId":"76718490901131346i41fb58c2s527480d394745ef0@mail.gmail.com","threadId":"17146","inReplyTo":"loom.20090113T213400-985@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-13T21:46:42Z","receivedAt":"2009-01-13T21:46:42Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Tue, Jan 13, 2009 at 4:34 PM, Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> Jay Soffian <jaysoffian <at> gmail.com> writes:\n>> Perhaps this will help in tracking down the problem.\n>\n> $ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsb-mac\n> Initialized empty Git repository in /Users/farcaller/temp/qsb-mac/.git/\n> r1 = 810fe584c48b884460b5403a28bc61d872452b93 (git-svn)\n> Temp file with moniker 'svn_delta' already in use at /opt/local/lib/perl5/\n> site_perl/5.8.8/Git.pm line 1011.\n\nHrmm, to me that doesn't help very much. Perhaps the author of git-svn\n(cc'd) might have an idea.\n\nBTW, I installed git-core via DarwinPorts and I can clone w/that\nversion as well.\n\n$ port info --name --version  git-core subversion perl5.8\nversion: 1.6.1\nname: git-core\n--\nversion: 1.5.5\nname: subversion\n--\nversion: 5.8.9\nname: perl5.8\n\nI was hoping it would fail for me so I could poke and prod.\n\nj.\n"},{"id":"100348","messageId":"76718490901131658l108852f2y9a25eb9133d6e96d@mail.gmail.com","threadId":"17146","inReplyTo":"loom.20090113T213400-985@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-14T00:58:09Z","receivedAt":"2009-01-14T00:58:09Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Tue, Jan 13, 2009 at 4:34 PM, Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> Jay Soffian <jaysoffian <at> gmail.com> writes:\n>> Perhaps this will help in tracking down the problem.\n>\n> $ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsb-mac\n> Initialized empty Git repository in /Users/farcaller/temp/qsb-mac/.git/\n> r1 = 810fe584c48b884460b5403a28bc61d872452b93 (git-svn)\n> Temp file with moniker 'svn_delta' already in use at /opt/local/lib/perl5/\n> site_perl/5.8.8/Git.pm line 1011.\n\nOne more thing to try. Edit your Git.pm and make the top of\n_temp_cache() look like the following:\n\nsub _temp_cache {\n\tmy ($self, $name) = _maybe_self(@_);\n\tuse Carp qw(longmess);\n\twarn longmess() if $name eq \"svn_delta\";\n\nSo you're adding the \"use Carp...\" and \"warn...\" lines.\n\nThen try the import again. That should at least show why the svn_delta\ntemp file is being acquired twice.\n\n(Yes, this is the printf school of debugging...)\n\nj.\n"},{"id":"100381","messageId":"loom.20090114T083207-942@post.gmane.org","threadId":"17146","inReplyTo":"76718490901131658l108852f2y9a25eb9133d6e96d@mail.gmail.com","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-14T08:32:51Z","receivedAt":"2009-01-14T08:32:51Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"Jay Soffian <jaysoffian <at> gmail.com> writes:\n> So you're adding the \"use Carp...\" and \"warn...\" lines.\n> \n> Then try the import again. That should at least show why the svn_delta\n> temp file is being acquired twice.\n\nOutput is pretty long so I've put in on pastebin:\nhttp://pastebin.com/m210be905\n"},{"id":"100454","messageId":"76718490901141006n6c70eb2cw67ad814b3739786e@mail.gmail.com","threadId":"17146","inReplyTo":"loom.20090114T083207-942@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-14T18:06:56Z","receivedAt":"2009-01-14T18:06:56Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Wed, Jan 14, 2009 at 3:32 AM, Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> Jay Soffian <jaysoffian <at> gmail.com> writes:\n>> So you're adding the \"use Carp...\" and \"warn...\" lines.\n>>\n>> Then try the import again. That should at least show why the svn_delta\n>> temp file is being acquired twice.\n>\n> Output is pretty long so I've put in on pastebin:\n> http://pastebin.com/m210be905\n\nOkay, this is beyond me. git-svn (among other things) implements a\nso-called delta editor (part of the subversion API). The driver for\nthat editor is apparently calling the editor's apply_textdelta()\nmethod twice in a row w/o an intervening call to the editor's\nclose_file() method.\n\nI don't understand when and/or why it would do this. This part of the\nSubversion API seems not that well documented, and I got lost trying\nto follow all the indirections in the Subversion source code (esp\nw/the swig'ified Perl bindings). AFAICT, this should not be happening.\n\nI could ask you to insert some more debugging statements to try to\ntrack it to a specific file (or files), but I think at this point I'll\ngoing to wait to see if the git-svn author has any ideas.\n\nBTW, it doesn't help any that the order that files are checked out\nseems not to be consistent. Not only is my git-svn clone working, the\norder my files are checked out in is different from yours.\n\nOh, one other thing I don't understand is why the debugging output is\nnow showing that some files are being added for you (the lines\nbeginning with \\tA). Before you weren't getting that. I had thought\nthese lines might be getting lost in stdout buffering, but git-svn\ndisables buffering on stdout, so color me confused.\n\nSorry I can't be more help,\n\nj.\n"},{"id":"100814","messageId":"20090117095147.GA29598@dcvr.yhbt.net","threadId":"17146","inReplyTo":"76718490901141006n6c70eb2cw67ad814b3739786e@mail.gmail.com","subject":"Re: git-svn fails to fetch repository","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-01-17T09:51:47Z","receivedAt":"2009-01-17T09:51:47Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Jay Soffian <jaysoffian@gmail.com> wrote:\n> On Wed, Jan 14, 2009 at 3:32 AM, Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> > Jay Soffian <jaysoffian <at> gmail.com> writes:\n> >> So you're adding the \"use Carp...\" and \"warn...\" lines.\n> >>\n> >> Then try the import again. That should at least show why the svn_delta\n> >> temp file is being acquired twice.\n> >\n> > Output is pretty long so I've put in on pastebin:\n> > http://pastebin.com/m210be905\n> \n> Okay, this is beyond me. git-svn (among other things) implements a\n> so-called delta editor (part of the subversion API). The driver for\n> that editor is apparently calling the editor's apply_textdelta()\n> method twice in a row w/o an intervening call to the editor's\n> close_file() method.\n> \n> I don't understand when and/or why it would do this. This part of the\n> Subversion API seems not that well documented, and I got lost trying\n> to follow all the indirections in the Subversion source code (esp\n> w/the swig'ified Perl bindings). AFAICT, this should not be happening.\n\nThank you Jay for your help and patch so far.  I'm sorry you had to go\nthrough the craziness that is the Subversion library (and associated\ncraziness that leaked into git-svn) to try an debug this problem.\n\n> I could ask you to insert some more debugging statements to try to\n> track it to a specific file (or files), but I think at this point I'll\n> going to wait to see if the git-svn author has any ideas.\n\nPutting \"print\" and \"print Dumper(\\@_)\" everywhere is pretty much\nhow I figured out how to use the delta interface the first time around.\n\nVladimir:\n\nI can't reproduce this problem at all, either.  git-svn dups the file\nhandle in question, maybe your combination of (SVN/Perl/OSX) somehow\nhandles dup'd file descriptors differently?\n\nDoes the following patch (a shot in the dark) work for you?\n(it generates a lot of warnings for me)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex ad01e18..23e6925 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -3361,6 +3361,7 @@ sub apply_textdelta {\n \tseek $base, 0, 0 or croak $!;\n \t$fb->{fh} = $fh;\n \t$fb->{base} = $base;\n+\t$fb->{dup} = $dup;\n \t[ SVN::TxDelta::apply($base, $dup, undef, $fb->{path}, $fb->{pool}) ];\n }\n \n@@ -3408,6 +3409,7 @@ sub close_file {\n \n \t\tGit::temp_release($fb->{base}, 1);\n \t\tGit::temp_release($fh, 1);\n+\t\teval { Git::temp_release($fb->{dup}, 1) };\n \t} else {\n \t\t$hash = $fb->{blob} or die \"no blob information\\n\";\n \t}\n\n> BTW, it doesn't help any that the order that files are checked out\n> seems not to be consistent. Not only is my git-svn clone working, the\n> order my files are checked out in is different from yours.\n> \n> Oh, one other thing I don't understand is why the debugging output is\n> now showing that some files are being added for you (the lines\n> beginning with \\tA). Before you weren't getting that. I had thought\n> these lines might be getting lost in stdout buffering, but git-svn\n> disables buffering on stdout, so color me confused.\n\nWith that comment and my attempted fix above, I'm almost under the\nimpression that something on Vladimir's system (or Perl) is\nconfigured to handle I/O in some weird/broken way...\n\n-- \nEric Wong\n"},{"id":"100815","messageId":"E3BA9CAD-B3CD-4050-8493-7C4024AD4529@gmail.com","threadId":"17146","inReplyTo":"20090117095147.GA29598@dcvr.yhbt.net","subject":"Re: git-svn fails to fetch repository","fromName":"Vladimir Pouzanov","fromEmail":"farcaller@gmail.com","sentAt":"2009-01-17T10:06:09Z","receivedAt":"2009-01-17T10:06:09Z","isPatch":false,"sender":{"key":"farcaller@gmail.com","avatar":"https://gravatar.com/avatar/88dddf8956daa2abdfc152d066519f895438c794cc457f730e24487d8bae1e0a?d=mp&s=160"},"body":"\nOn 17 янв. 2009, at 11:51, Eric Wong wrote:\n> Does the following patch (a shot in the dark) work for you?\n> (it generates a lot of warnings for me)\n\n$ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsbmac\nInitialized empty Git repository in /Users/farcaller/temp/qsbmac/.git/\nr1 = 810fe584c48b884460b5403a28bc61d872452b93 (git-svn)\nAttempt to release temp file 'GLOB(0x82b290)' that has not been locked  \nat /opt/local/libexec/git-core/git-svn line 3413\n\tA\texternals/BSJSONAdditions/NSArray+BSJSONAdditions.m\nAttempt to release temp file 'GLOB(0xa0de34)' that has not been locked  \nat /opt/local/libexec/git-core/git-svn line 3413\n\tA\texternals/BSJSONAdditions/BSJSON.h\nAttempt to release temp file 'GLOB(0x80ed84)' that has not been locked  \nat /opt/local/libexec/git-core/git-svn line 3413\n\tA\texternals/BSJSONAdditions/NSDictionary+BSJSONAdditions.m\nAttempt to release temp file 'GLOB(0x9d3018)' that has not been locked  \nat /opt/local/libexec/git-core/git-svn line 3413\n\tA\texternals/BSJSONAdditions/Example/Unit Tests/ \nBSJSONScanner_UnitTests.h\nAttempt to release temp file 'GLOB(0xa0df48)' that has not been locked  \nat /opt/local/libexec/git-core/git-svn line 3413\n\tA\texternals/BSJSONAdditions/Example/version.plist\nAttempt to release temp file 'GLOB(0x9d8114)' that has not been locked  \nat /opt/local/libexec/git-core/git-svn line 3413\n\tA\texternals/BSJSONAdditions/NSDictionary+BSJSONAdditions.h\nTemp file with moniker 'svn_delta' already in use at /opt/local/lib/ \nperl5/site_perl/5.8.8/Git.pm line 1011.\n\nI've built git 1.6.1 based on OSX original perl an subversion, and it  \nhandles the give repo without any problems, so the problem is kind of  \nsolved. Strange thing is that macports git (the one that fails)  \nhandles other svn repositories without any problems, I had cloned  \nwhole transmissionbt repo (>7000 revs) with all the tags and branches  \nand several other simpler repositories.\n\n-- \nSincerely,\nVladimir \"Farcaller\" Pouzanov\n"},{"id":"100817","messageId":"20090117104558.GC29598@dcvr.yhbt.net","threadId":"17146","inReplyTo":"E3BA9CAD-B3CD-4050-8493-7C4024AD4529@gmail.com","subject":"Re: git-svn fails to fetch repository","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-01-17T10:45:58Z","receivedAt":"2009-01-17T10:45:58Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Vladimir Pouzanov <farcaller@gmail.com> wrote:\n> On 17 янв. 2009, at 11:51, Eric Wong wrote:\n>> Does the following patch (a shot in the dark) work for you?\n>> (it generates a lot of warnings for me)\n>\n> $ git svn clone http://qsb-mac.googlecode.com/svn/trunk qsbmac\n> Initialized empty Git repository in /Users/farcaller/temp/qsbmac/.git/\n> r1 = 810fe584c48b884460b5403a28bc61d872452b93 (git-svn)\n> Attempt to release temp file 'GLOB(0x82b290)' that has not been locked  \n> at /opt/local/libexec/git-core/git-svn line 3413\n> \tA\texternals/BSJSONAdditions/NSArray+BSJSONAdditions.m\n> Attempt to release temp file 'GLOB(0xa0de34)' that has not been locked  \n> at /opt/local/libexec/git-core/git-svn line 3413\n> \tA\texternals/BSJSONAdditions/BSJSON.h\n> Attempt to release temp file 'GLOB(0x80ed84)' that has not been locked  \n> at /opt/local/libexec/git-core/git-svn line 3413\n> \tA\texternals/BSJSONAdditions/NSDictionary+BSJSONAdditions.m\n> Attempt to release temp file 'GLOB(0x9d3018)' that has not been locked  \n> at /opt/local/libexec/git-core/git-svn line 3413\n> \tA\texternals/BSJSONAdditions/Example/Unit Tests/ \n> BSJSONScanner_UnitTests.h\n> Attempt to release temp file 'GLOB(0xa0df48)' that has not been locked  \n> at /opt/local/libexec/git-core/git-svn line 3413\n> \tA\texternals/BSJSONAdditions/Example/version.plist\n> Attempt to release temp file 'GLOB(0x9d8114)' that has not been locked  \n> at /opt/local/libexec/git-core/git-svn line 3413\n> \tA\texternals/BSJSONAdditions/NSDictionary+BSJSONAdditions.h\n> Temp file with moniker 'svn_delta' already in use at /opt/local/lib/ \n> perl5/site_perl/5.8.8/Git.pm line 1011.\n\nOK, and there are no symlinks in the repository which could trigger a\nrare code path, either.  Very strange, does abort_edit() ever get called\nin there?\n\n> I've built git 1.6.1 based on OSX original perl an subversion, and it  \n> handles the give repo without any problems, so the problem is kind of  \n> solved. Strange thing is that macports git (the one that fails) handles \n> other svn repositories without any problems, I had cloned whole \n> transmissionbt repo (>7000 revs) with all the tags and branches and \n> several other simpler repositories.\n\nAt least you got a working combination working.  Does anybody know if\nmacports git have any patches/changes to it that could cause this?\n\n-- \nEric Wong\n"},{"id":"100865","messageId":"76718490901170933r5d325a9fud8a0f148e972f9a8@mail.gmail.com","threadId":"17146","inReplyTo":"20090117104558.GC29598@dcvr.yhbt.net","subject":"Re: git-svn fails to fetch repository","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-01-17T17:33:05Z","receivedAt":"2009-01-17T17:33:05Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Sat, Jan 17, 2009 at 5:45 AM, Eric Wong <normalperson@yhbt.net> wrote:\n> At least you got a working combination working.  Does anybody know if\n> macports git have any patches/changes to it that could cause this?\n\nI installed the macports git and it worked fine for me. Same versions\nof git and subversion. The only difference was that I was on macports\nperl 5.8.9 and Vladimir was on macports perl 5.8.8.\n\nIf I have time, I'll try it with macports perl 5.8.8 and see if I can\nreproduce. I'm pretty curious why the apply_textdelta() callback is\napparently running twice on the same file w/o the intervening close.\n:-)\n\nj.\n"},{"id":"101635","messageId":"20090123085235.GA14721@machine.or.cz","threadId":"17146","inReplyTo":"loom.20090113T204616-845@post.gmane.org","subject":"Re: git-svn fails to fetch repository","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2009-01-23T08:52:35Z","receivedAt":"2009-01-23T08:52:35Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Tue, Jan 13, 2009 at 08:46:55PM +0000, Vladimir Pouzanov wrote:\n> Björn Steinbrink <B.Steinbrink <at> gmx.de> writes:\n> > Is that Linux box using Gentoo? If so, try emerging subversion with -dso\n> > in your build flags.\n> \n> Yeah, that's gentoo. Will try rebuilding svn now.\n\nI have hit the same issue (segfault on Gentoo) and this fixed it for me.\nBut do you have any details on why is the segfault caused and how to\nprevent it? USE=dso is the default on Gentoo. :-(\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nThe average, healthy, well-adjusted adult gets up at seven-thirty\nin the morning feeling just terrible. -- Jean Kerr\n"},{"id":"101658","messageId":"20090123132218.GB523@atjola.homenet","threadId":"17146","inReplyTo":"20090123085235.GA14721@machine.or.cz","subject":"Re: git-svn fails to fetch repository","fromName":"Björn Steinbrink","fromEmail":"b.steinbrink@gmx.de","sentAt":"2009-01-23T13:22:18Z","receivedAt":"2009-01-23T13:22:18Z","isPatch":false,"sender":{"key":"b.steinbrink@gmx.de","avatar":"https://avatars.githubusercontent.com/u/230962?v=4"},"body":"On 2009.01.23 09:52:35 +0100, Petr Baudis wrote:\n> On Tue, Jan 13, 2009 at 08:46:55PM +0000, Vladimir Pouzanov wrote:\n> > Björn Steinbrink <B.Steinbrink <at> gmx.de> writes:\n> > > Is that Linux box using Gentoo? If so, try emerging subversion with -dso\n> > > in your build flags.\n> > \n> > Yeah, that's gentoo. Will try rebuilding svn now.\n> \n> I have hit the same issue (segfault on Gentoo) and this fixed it for me.\n> But do you have any details on why is the segfault caused and how to\n> prevent it? USE=dso is the default on Gentoo. :-(\n\nNo idea, I just heard about that in #git. IIRC it was Mikachu who came\nup with that solution. Unfortunately, he's not around at the moment, and\nI don't recall his real name, so not on Cc. :-/\n\nBjörn\n"}]}