[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] issue #3292: fix for 'svnlook diff' regression: doesn't print added dirs

From: Lamar Goddard <lamargoddard_at_gmail.com>
Date: Fri, 4 Jun 2010 18:02:52 -0700

[[[
Fixes issue #3292: Output svnlook diff content for copied/moved directories

* subversion/svnlook/main.c
  (print_diff_tree): If diff isn't outputted but header has content,
output the header.
]]]

Index: subversion/svnlook/main.c
===================================================================
--- subversion/svnlook/main.c (revision 951625)
+++ subversion/svnlook/main.c (working copy)
@@ -1087,6 +1087,11 @@
         }
       SVN_ERR(svn_cmdline_fflush(stdout));
     }
+ else if (header->len != 0)
+ {
+ /* Print diff header. */
+ SVN_ERR(svn_cmdline_printf(pool, "%s", header->data));
+ }

   /* Make sure we delete any temporary files. */
   if (orig_path)

-- 
Lamar Goddard
lamargoddard_at_gmail.com
Received on 2010-06-05 14:13:00 CEST

This is an archived mail posted to the Subversion Dev mailing list.