# [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5

2 messages from 2009-01-19 to 2009-01-19. Participants: Marcel Koeppen, Eric Wong.
Thread: https://gitlist.dev/t/17242

## Marcel Koeppen, 2009-01-19 02:02

Subject: [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5
Message-ID: <1232330521-50197-1-git-send-email-git-dev@marzelpan.de>
URL: https://gitlist.dev/e/1232330521-50197-1-git-send-email-git-dev%40marzelpan.de

```
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>
---
 git-svn.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index ad01e18..2f16a4e 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -911,7 +911,8 @@ sub cmd_info {
 	if ($@) {
 		$result .= "Repository Root: (offline)\n";
 	}
-	$result .= "Repository UUID: $uuid\n" unless $diff_status eq "A";
+	$result .= "Repository UUID: $uuid\n" unless $diff_status eq "A" &&
+		($SVN::Core::VERSION le '1.5.4' || $file_type ne "dir");
 	$result .= "Revision: " . ($diff_status eq "A" ? 0 : $rev) . "\n";
 
 	$result .= "Node Kind: " .
-- 
1.6.1.142.g76f25

```

## Eric Wong, 2009-01-19 03:04

Subject: Re: [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5
Message-ID: <20090119030444.GA21944@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20090119030444.GA21944%40dcvr.yhbt.net
In-Reply-To: <1232330521-50197-1-git-send-email-git-dev@marzelpan.de>

```
Marcel Koeppen <git-dev@marzelpan.de> wrote:
> 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>

Thanks Marcel,
Acked-by: Eric Wong <normalperson@yhbt.net>

> ---
>  git-svn.perl |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/git-svn.perl b/git-svn.perl
> index ad01e18..2f16a4e 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -911,7 +911,8 @@ sub cmd_info {
>  	if ($@) {
>  		$result .= "Repository Root: (offline)\n";
>  	}
> -	$result .= "Repository UUID: $uuid\n" unless $diff_status eq "A";
> +	$result .= "Repository UUID: $uuid\n" unless $diff_status eq "A" &&
> +		($SVN::Core::VERSION le '1.5.4' || $file_type ne "dir");
>  	$result .= "Revision: " . ($diff_status eq "A" ? 0 : $rev) . "\n";
>  
>  	$result .= "Node Kind: " .
> -- 

```
