git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5
@ 2009-01-19  2:02 Marcel Koeppen
  2009-01-19  3:04 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Marcel Koeppen @ 2009-01-19  2:02 UTC (permalink / raw)
  To: git; +Cc: normalperson

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5
  2009-01-19  2:02 [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5 Marcel Koeppen
@ 2009-01-19  3:04 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2009-01-19  3:04 UTC (permalink / raw)
  To: Marcel Koeppen; +Cc: git

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: " .
> -- 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-19  3:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19  2:02 [PATCH] git-svn: Show UUID in svn info for added directories with svn 1.5.5 Marcel Koeppen
2009-01-19  3:04 ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).