You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by jc...@apache.org on 2011/02/08 23:16:21 UTC

svn commit: r1068613 - /subversion/trunk/subversion/libsvn_diff/diff_file.c

Author: jcorvel
Date: Tue Feb  8 22:16:20 2011
New Revision: 1068613

URL: http://svn.apache.org/viewvc?rev=1068613&view=rev
Log:
For now, disable elimination of the identical suffix for diff (and diff3
(merge) and diff4), so working copies of people running trunk don't get
corrupted (when merging files with more than 50 lines of identical suffix,
the identical suffix is truncated after the 50th common line).

I expect/hope this to be a temporary fix.

* subversion/libsvn_diff/diff_file.c
  (datasources_open): Disable suffix scanning for now.

Modified:
    subversion/trunk/subversion/libsvn_diff/diff_file.c

Modified: subversion/trunk/subversion/libsvn_diff/diff_file.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/diff_file.c?rev=1068613&r1=1068612&r2=1068613&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/diff_file.c (original)
+++ subversion/trunk/subversion/libsvn_diff/diff_file.c Tue Feb  8 22:16:20 2011
@@ -736,7 +736,11 @@ datasources_open(void *baton, apr_off_t 
   if (!reached_one_eof)
     /* No file consisted totally of identical prefix,
      * so there may be some identical suffix.  */
-    SVN_ERR(find_identical_suffix(files, datasources_len, file_baton->pool));
+    /* ### jcorve0: disable for now, because this causes wc corruption
+     * when merging files with more than 50 lines of identical suffix
+     * (identical suffix is truncated after the 50th common line). */
+    if (FALSE)
+      SVN_ERR(find_identical_suffix(files, datasources_len, file_baton->pool));
 
   /* Copy local results back to baton. */
   for (i = 0; i < datasources_len; i++)