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

Re: svn diff Changed Behavior in SVN 1.9

From: Branko ─îibej <brane_at_apache.org>
Date: Fri, 13 Jan 2017 09:25:29 +0100

On 13.01.2017 03:00, Jonathan Bedard wrote:
> In SVN 1.9, moving a file with svn move generates an unexpected patch file when running svn diff. https://bugs.webkit.org/show_bug.cgi?id=166914 has the work-around which WebKit used to fix this issue in our svn support scripts. Bellow is an example of svn 1.9.4 behavior contrasted with 1.7.19.
>
> 1.9.4:
>
> Index: a.txt
> ===================================================================
> --- a.txt (revision 210689)
> +++ a.txt (working copy)
> @@ -1,2 +0,0 @@
> -Line 1
> -Line 2
> Index: b.txt
> ===================================================================
>
>
> 1.7.19:
>
> Index: a.txt
> ===================================================================
> --- a.txt (revision 210689)
> +++ a.txt (working copy)
> -Line 1
> -Line 2
>
> Newer versions of svn emit a file index without a body. This seems to violate the intention of an index.

You probably want 'svn diff --no-diff-added'.

-- Brane
Received on 2017-01-13 09:25:34 CET

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

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