On 3/19/07, John Szakmeister <john@szakmeister.net> wrote:
> I was taking a look at issue 1493 and trying to determine a way to
> maintain similarly formatted output, but using libsvn_diff to help
> generate the diff.  Naturally, I headed to the keyboard, edited a
> property, and diff'd the file.  I was surprised by the result.
>
> The attached script reproduces the problem.  It basically sets
> svn:ignore to 'a', commits, and then sets svn:ignore to 'a\nb'.  The
> resultant output was:
>    Property changes on: .
>    ___________________________________________________________________
>    Name: svn:ignore
>       - a
>
>       + a
>    b
>
>
> Notice that there seem to be a few things wrong.  The +- a is indented
> from the rest of the diff, or rather b is not indented.  But the real
> problem is that there should be just a '+ b' at the end.
>
> I tried this on both Linux and Mac OS X, and got the same results.
>
> I'll take a closer look, but wanted to throw this out there in case
> someone might know when this broke.
I suspect it's always been like this.  Property diffs are manually
created as a removal of everything that used to be there (-blah) and
an addition of what is there now (+foobar).  When there's more than
one line it ends up looking like this.
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 19 14:26:32 2007