subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1835230 - /subversion/trunk/subversion/tests/cmdline/diff_tests.py
Date Fri, 06 Jul 2018 11:03:20 GMT
Author: julianfoad
Date: Fri Jul  6 11:03:19 2018
New Revision: 1835230

URL: http://svn.apache.org/viewvc?rev=1835230&view=rev
Log:
Add a test: a summary-diff reports an unmodified copy as modified.

* subversion/tests/cmdline/diff_tests.py
  (diff_summary_repo_wc_local_copy_unmodified): New test, XFail.
  (test_list): Run it.

Modified:
    subversion/trunk/subversion/tests/cmdline/diff_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/diff_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/diff_tests.py?rev=1835230&r1=1835229&r2=1835230&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/diff_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Fri Jul  6 11:03:19 2018
@@ -5177,6 +5177,22 @@ def diff_summary_repo_wc_local_copy(sbox
                     '--old=' + sbox.ospath('iota') + '@HEAD',
                     '--new=' + sbox.ospath('iota2'))
 
+# Summary diff with a repository source side and a local copy target side.
+# Svn reported the unmodified copy as modified in 1.10.0 and earlier releases.
+@XFail()
+def diff_summary_repo_wc_local_copy_unmodified(sbox):
+  "diff summary repo wc local copy unmodified"
+  sbox.build()
+  wc_dir = sbox.wc_dir
+
+  sbox.simple_copy('iota', 'iota2')
+  expected_diff = svntest.wc.State(wc_dir, {
+    })
+  svntest.actions.run_and_verify_diff_summarize(
+                    expected_diff,
+                    '--old=' + sbox.ospath('iota') + '@HEAD',
+                    '--new=' + sbox.ospath('iota2'))
+
 
 ########################################################################
 #Run the tests
@@ -5275,6 +5291,7 @@ test_list = [ None,
               diff_peg_resolve,
               diff_unversioned_files_git,
               diff_summary_repo_wc_local_copy,
+              diff_summary_repo_wc_local_copy_unmodified,
               ]
 
 if __name__ == '__main__':



Mime
View raw message