You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jonathan Bedard <jb...@apple.com> on 2017/01/13 02:00:46 UTC
svn diff Changed Behavior in SVN 1.9
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.
Re: svn diff Changed Behavior in SVN 1.9
Posted by Branko Čibej <br...@apache.org>.
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