You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2013/10/25 02:26:35 UTC

svn commit: r1535591 - /subversion/trunk/subversion/tests/cmdline/diff_tests.py

Author: breser
Date: Fri Oct 25 00:26:35 2013
New Revision: 1535591

URL: http://svn.apache.org/r1535591
Log:
Add a test for Issue #4421 to trunk: deep adds of diff --summarize target.

Trunk hasn't had this problem for a while, but add the test for it so if
we ever regress here we'll know.

* subversion/tests/cmdline/diff_tests.py
  (basic_diff_summarize): Test doing diff --summarize on a target that even the
    parent doesn't exist in the base revision.

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=1535591&r1=1535590&r2=1535591&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/diff_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Fri Oct 25 00:26:35 2013
@@ -2752,6 +2752,20 @@ def basic_diff_summarize(sbox):
   svntest.actions.run_and_verify_diff_summarize(expected_reverse_diff,
                                                 wc_dir, '-c-3')
 
+  # Get the differences between a deep newly added dir Issue(4421)
+  expected_diff = svntest.wc.State(wc_dir, {
+    'Q/R'         : Item(status='A '),
+    'Q/R/newfile' : Item(status='A '),
+    })
+  expected_reverse_diff = svntest.wc.State(wc_dir, {
+    'Q/R'         : Item(status='D '),
+    'Q/R/newfile' : Item(status='D '),
+    })
+  svntest.actions.run_and_verify_diff_summarize(expected_diff,
+                                                p('Q/R'), '-c3')
+  svntest.actions.run_and_verify_diff_summarize(expected_reverse_diff,
+                                                p('Q/R'), '-c-3')
+
 #----------------------------------------------------------------------
 def diff_weird_author(sbox):
   "diff with svn:author that has < in it"