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

Re: Difference of behavior between svn 1.4.5 and 1.5.1 for svnlook diff

From: Melot <frederic.melot_at_lpsc.in2p3.fr>
Date: Wed, 15 Oct 2008 12:07:51 +0200

Hello,

yes I will try.

Best regards,
Frédéric

Daniel Shahaf wrote on Thu, 28 Aug 2008 at 18:04 +0300:
> C. Michael Pilato wrote on Thu, 28 Aug 2008 at 10:13 -0400:
> > Looks like in the original recipe, the copied thing was a directory
(copied
> > from "trunk"). Is that significant?
> >
>
> Yes. (Julian pointed out the same.)
>
> % /usr/bin/svnlook diff -r2 r1
> Copied: trunk2 (from rev 1, trunk)
>
> % svnlook diff -r2 r1
>
> %
>

Filed as http://subversion.tigris.org/issues/show_bug.cgi?id=3292.

Frederic (or Frédéric?), do you have time to provide a patch?

Daniel

> In 1.4, it just prints the "Copied" header immediately:
>
> SVN_ERR(svn_cmdline_printf(pool, _("Copied: %s (from rev %ld,
%s)\n"),
> path, node->copyfrom_rev, base_path));
> printed_header = TRUE;
>
> but in trunk, it uses a buffer:
>
> svn_stringbuf_appendcstr
> (header,
> apr_psprintf(pool, _("Copied: %s (from rev %ld, %s)\n"),
> path, node->copyfrom_rev, base_path));
>
> And, apparently, never prints its contents for the directory case...
>

> Daniel

Received on 2008-10-15 12:09:13 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.