@matheusbsbs / matheus-bagliano / commits / 7730fbe624
Fork 0

git-svn: fix blocking with svn:// servers after do_switch

We now explicitly disconnect before starting new SVN::Ra connections. SVN::Ra objects will automatically be disconnected from the server on DESTROY. SVN servers seem to have problems accepting multiple connections from one client, and the SVN library has trouble being connected to multiple servers at once. This appears to cause opening the second connection to block, and cause git-svn to be unusable after using the do_switch() function. git-svn opens another connection because a workaround is necesary for the buggy reparent function handling on certain versions of svn:// and svn+ssh:// servers. Instead of using the reparent function (analogous to chdir), it will reopen a new connection to a different URL on the SVN server. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Wong committed Jul 4, 2007 at 14:07 UTC 7730fbe62490f9e6ee33f6136ecd0e75869894e3
1 file changed +1
git-svn.perl
+1
@@ -3002,6 +3002,7 @@ sub new {
3002 \&Git::SVN::Prompt::username, 2),
3003 ]);
3004 my $config = SVN::Core::config_get_config($config_dir);
3005 + $RA = undef;
3006 my $self = SVN::Ra->new(url => $url, auth => $baton,
3007 config => $config,
3008 pool => SVN::Pool->new,