Skip to contentSkip to conversation

git-svn: remove redundant slashes from show-ignore

PATCH In review Harvey Harrison 2 participants 4 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 git-svn: remove redundant slashes from show-ignore

Quoted 8 lines · Jonathan Scott Duff

Recently I tried "git svn showignore" on my parrot repository and it failed. I tracked it down to the prop_walk() sub. When it recurses, $path has an extra / on the beginning (i.e., when it recurses, it
tries to get the props for "//apps" instead of "/apps"). I *think*
this is because $path is used in the recursive call rather than $p (which seems to contain a properly transformed $path). Anyway, I've attached a patch that works for me and I think is generally the right thing.

Patch-submitted-by Jonathan Scott Duff

---

Thanks Jonathan

 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-svn.perl +1 -1
index 073471f..bc0c22c 100755
@@ -1903,7 +1903,7 @@ sub prop_walk {
 
 	foreach (sort keys %$dirent) {
 		next if $dirent->{$_}->{kind} != $SVN::Node::dir;
-		$self->prop_walk($path . '/' . $_, $rev, $sub);
+		$self->prop_walk($p . $_, $rev, $sub);
 	}
 }
 
Signature · 1 line
Eric Wong
#2 lore raw
Quoted 11 lines · Eric Wong
Quoted 8 lines · Jonathan Scott Duff

Recently I tried "git svn showignore" on my parrot repository and it failed. I tracked it down to the prop_walk() sub. When it recurses, $path has an extra / on the beginning (i.e., when it recurses, it
tries to get the props for "//apps" instead of "/apps"). I *think*
this is because $path is used in the recursive call rather than $p (which seems to contain a properly transformed $path). Anyway, I've attached a patch that works for me and I think is generally the right thing.

Patch-submitted-by: Jonathan Scott Duff

Shouldn't that be Signed-off-by?

Cheers,

Harvey

#3 lore raw
Quoted 11 lines · Harvey Harrison
Quoted 10 lines · Eric Wong
Quoted 8 lines · Jonathan Scott Duff

Recently I tried "git svn showignore" on my parrot repository and it failed. I tracked it down to the prop_walk() sub. When it recurses, $path has an extra / on the beginning (i.e., when it recurses, it
tries to get the props for "//apps" instead of "/apps"). I *think*
this is because $path is used in the recursive call rather than $p (which seems to contain a properly transformed $path). Anyway, I've attached a patch that works for me and I think is generally the right thing.

Quoted 3 lines
Quoted 1 line

Patch-submitted-by: Jonathan Scott Duff

Shouldn't that be Signed-off-by?

I'm not sure what the proper protocol for this should be, as Jonathan emailed the patch to me privately without a sign-off...

[1] - Out of respect for his privacy, I'm only Bcc-ing him to avoid putting his address on the list.

Signature · 1 line
Eric Wong
#4 lore raw
Quoted 14 lines · Eric Wong
Quoted 13 lines · Harvey Harrison
Quoted 11 lines · Eric Wong
Quoted 8 lines · Jonathan Scott Duff

Recently I tried "git svn showignore" on my parrot repository and it failed. I tracked it down to the prop_walk() sub. When it recurses, $path has an extra / on the beginning (i.e., when it recurses, it
tries to get the props for "//apps" instead of "/apps"). I *think*
this is because $path is used in the recursive call rather than $p (which seems to contain a properly transformed $path). Anyway, I've attached a patch that works for me and I think is generally the right thing.

Patch-submitted-by: Jonathan Scott Duff

Quoted 7 lines
Quoted 1 line

Shouldn't that be Signed-off-by?

I'm not sure what the proper protocol for this should be, as Jonathan emailed the patch to me privately without a sign-off...

[1] - Out of respect for his privacy, I'm only Bcc-ing him to avoid putting his address on the list.

Signed-off-by Jonathan Scott Duff
Quoted 3 lines · Jonathan Scott Duff

Er ... yeah. I've very new to git (long time svn user though) so I don't know what the cultural norms are here. So if I need to "sign off" on the patch, consider it signed off :-)

Signature · 1 line
Eric Wong