git-svn fails in prop_walk if $self->{path} is not empty
Ping?
Date: Wed, 28 May 2008 00:54:02 +0200
To: [email protected]
Subject: Re: [PATCH] git-svn fails in prop_walk if $self->{path} is not empty
Message-ID: <[email protected]>
From: Nikolaus Schulz <[email protected]>
Happy coincidence!
This patch happens to fix my problem posted in "git-svn {show,create}-ignore chokes upon subdirs" today.
Nikolaus
Quoted 37 lines · Gerrit Pape
From: Christian Engwer <[email protected]>
The problem now is that
prop_walkstrips trunk from the path and then calls itself recursively. But now trunk is missing in the path andget_dirfails, because it is called for a non existing path.The attached patch fixed the problem, by adding the priviously stipped $self->{path} in the recursive call.
git-svn repository for the commands show-ignore and show-external.Patch was submitted through
http://bugs.debian.org/477393Signed-off-by Gerrit Pape <[email protected]>---
I'm not that much a git-svn user, and didn't test this thoroughly. I'd be happy if anyone could crossread/test this, and maybe add a Acked-By.
Thanks, Gerrit.
git-svn.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)git-svn.perl +1
-1@@ -1918,7 +1918,7 @@ sub prop_walk { foreach (sort keys %$dirent) { next if $dirent->{$_}->{kind} != $SVN::Node::dir; - $self->prop_walk($p . $_, $rev, $sub); + $self->prop_walk($self->{path} . $p . $_, $rev, $sub); } }
Eric Wong
Acked-byQuoted 1 line · Junio C Hamano
Ping?
Oops, missed this. This looks right to me, (but haven't had time to test to make sure this really works).
There is are minor spelling errors/typo in the commit message, which I've noted below, though.
Unless Benoit steps in and objects:
Quoted 6 lines
Date: Wed, 28 May 2008 00:54:02 +0200
To: [email protected]
Subject: Re: [PATCH] git-svn fails inprop_walkif $self->{path} is not empty
Message-ID: <[email protected]>
From: Nikolaus Schulz <[email protected]>
Quoted 15 lines
Happy coincidence!
This patch happens to fix my problem posted in "git-svn {show,create}-ignore chokes upon subdirs" today.
Nikolaus
Quoted 7 lines · Gerrit Pape
From: Christian Engwer <[email protected]>
The problem now is that
prop_walkstrips trunk from the path and then calls itself recursively. But now trunk is missing in the path andget_dirfails, because it is called for a non existing path.The attached patch fixed the problem, by adding the priviously stipped
previously stripped
Quoted 30 lines
Quoted 30 lines
$self->{path} in the recursive call.
git-svn repository for the commands show-ignore and show-external.Patch was submitted through
http://bugs.debian.org/477393Signed-off-by Gerrit Pape <[email protected]>---
I'm not that much a git-svn user, and didn't test this thoroughly. I'd be happy if anyone could crossread/test this, and maybe add a Acked-By.
Thanks, Gerrit.
git-svn.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)git-svn.perl +1
-1@@ -1918,7 +1918,7 @@ sub prop_walk { foreach (sort keys %$dirent) { next if $dirent->{$_}->{kind} != $SVN::Node::dir; - $self->prop_walk($p . $_, $rev, $sub); + $self->prop_walk($self->{path} . $p . $_, $rev, $sub); } }