You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/05/23 18:29:23 UTC
svn commit: r1341940 -
/subversion/trunk/subversion/tests/cmdline/diff_tests.py
Author: stsp
Date: Wed May 23 16:29:22 2012
New Revision: 1341940
URL: http://svn.apache.org/viewvc?rev=1341940&view=rev
Log:
* subversion/tests/cmdline/diff_tests.py
(diff_renamed_dir): Extend to cover the changes made in r1341927.
This test will now fail with pre-r1341927 clients.
While here, fix a comment that wrongly described a wc->wc diff
as a repos->wc diff.
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=1341940&r1=1341939&r2=1341940&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/diff_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Wed May 23 16:29:22 2012
@@ -1959,7 +1959,7 @@ def diff_renamed_dir(sbox):
svntest.main.run_svn(None, 'mv', os.path.join('A', 'D', 'G'),
os.path.join('A', 'D', 'I'))
- # Check a repos->wc diff
+ # Check a wc->wc diff
exit_code, diff_output, err_output = svntest.main.run_svn(
None, 'diff', '--show-copies-as-adds', os.path.join('A', 'D'))
@@ -1972,6 +1972,23 @@ def diff_renamed_dir(sbox):
'A') :
raise svntest.Failure
+ # Check a repos->wc diff of the moved-here node before commit
+ exit_code, diff_output, err_output = svntest.main.run_svn(
+ None, 'diff', '-r', '1', '--show-copies-as-adds',
+ os.path.join('A', 'D', 'I'))
+ if check_diff_output(diff_output,
+ os.path.join('A', 'D', 'I', 'pi'),
+ 'A') :
+ raise svntest.Failure
+
+ # Check a repos->wc diff of the moved-away node before commit
+ exit_code, diff_output, err_output = svntest.main.run_svn(
+ None, 'diff', '-r', '1', os.path.join('A', 'D', 'G'))
+ if check_diff_output(diff_output,
+ os.path.join('A', 'D', 'G', 'pi'),
+ 'D') :
+ raise svntest.Failure
+
# Commit
svntest.actions.run_and_verify_svn(None, None, [],
'ci', '-m', 'log msg')