You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2018/07/05 20:52:35 UTC
svn commit: r1835188 -
/subversion/trunk/subversion/tests/cmdline/diff_tests.py
Author: julianfoad
Date: Thu Jul 5 20:52:35 2018
New Revision: 1835188
URL: http://svn.apache.org/viewvc?rev=1835188&view=rev
Log:
Add a test for a summary-diff case that crashes.
I just found came across this case by code inspection.
* subversion/tests/cmdline/diff_tests.py
(diff_summary_repo_wc_local_copy): 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=1835188&r1=1835187&r2=1835188&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/diff_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Thu Jul 5 20:52:35 2018
@@ -5160,6 +5160,24 @@ def diff_unversioned_files_git(sbox):
'--old', sbox.ospath('foo'),
'--new', sbox.ospath('A/bar'))
+# Summary diff with a repository source side and a local copy target side.
+# This particular combination crashed in 1.10.0 and earlier releases.
+@XFail()
+def diff_summary_repo_wc_local_copy(sbox):
+ "diff summary repo wc local copy"
+ sbox.build()
+ wc_dir = sbox.wc_dir
+
+ sbox.simple_copy('iota', 'iota2')
+ sbox.simple_append('hello\n', 'iota2')
+ expected_diff = svntest.wc.State(wc_dir, {
+ 'iota2': Item(status='A '),
+ })
+ svntest.actions.run_and_verify_diff_summarize(
+ expected_diff,
+ '--old=' + sbox.ospath('iota') + '@HEAD',
+ '--new=' + sbox.ospath('iota2'))
+
########################################################################
#Run the tests
@@ -5257,6 +5275,7 @@ test_list = [ None,
diff_symlinks,
diff_peg_resolve,
diff_unversioned_files_git,
+ diff_summary_repo_wc_local_copy,
]
if __name__ == '__main__':