git-svn: Show UUID in svn info for added directories with svn 1.5.5
In svn 1.5.5 the output of "svn info" for added directories was changed and now shows the repository UUID. This patch implements the same behavior for "git svn info" and makes t9119-git-svn-info.17 pass if svn 1.5.5 is used. Signed-off-by: Marcel Koeppen <git-dev@marzelpan.de> Acked-by: Eric Wong <normalperson@yhbt.net>
Marcel Koeppen committed
Jan 19, 2009 at 03:02 UTC
22ba47f544a233958c73a9260b18c57b431f44b3
1 file changed
+2
-1
git-svn.perl
+2
-1
@@ -912,7 +912,8 @@ sub cmd_info {
912
if ($@) {
913
$result .= "Repository Root: (offline)\n";
914
}
915
- $result .= "Repository UUID: $uuid\n" unless $diff_status eq "A";
915
+ $result .= "Repository UUID: $uuid\n" unless $diff_status eq "A" &&
916
+ ($SVN::Core::VERSION le '1.5.4' || $file_type ne "dir");
917
$result .= "Revision: " . ($diff_status eq "A" ? 0 : $rev) . "\n";
918
919
$result .= "Node Kind: " .