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

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

From: Frederic Melot <frederic.melot_at_lpsc.in2p3.fr>
Date: Tue, 21 Oct 2008 16:48:44 +0200

Hello,

here is a patch submission for issue #3292.

Best regards,
Frédéric Melot

[[[
Fix issue #3292: 'svnlook diff' regression: doesn't print added dirs
]]]
Index: subversion/svnlook/main.c
===================================================================
--- subversion/svnlook/main.c (revision 33814)
+++ subversion/svnlook/main.c (working copy)
@@ -883,6 +883,14 @@
          apr_psprintf(pool, _("Copied: %s (from rev %ld, %s)\n"),
                       path, node->copyfrom_rev, base_path));

+ /* Do not print the diff for files,
+ as it will be done in the next block */
+ if (node->kind != svn_node_file)
+ {
+ SVN_ERR(svn_cmdline_printf(pool, header->data));
+ SVN_ERR(svn_cmdline_printf(pool, "\n"));
+ }
+
       SVN_ERR(svn_fs_revision_root(&base_root,
                                    svn_fs_root_fs(base_root),
                                    node->copyfrom_rev, pool));

Received on 2008-10-21 16:49:02 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.