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 2010/01/27 16:53:44 UTC

svn commit: r903699 - /subversion/trunk/subversion/tests/cmdline/patch_tests.py

Author: stsp
Date: Wed Jan 27 15:53:43 2010
New Revision: 903699

URL: http://svn.apache.org/viewvc?rev=903699&view=rev
Log:
Remove the word "unidiff" from patch test names and docstrings.
We do not expect svn patch to handle non-unidiff types of diffs
any time soon, and it makes the test run output a bit more pretty.

* subversion/tests/cmdline/patch_tests.py
  (patch_unidiff, patch_unidiff_absolute_paths, patch_unidiff_offset,
   patch_unidiff_strip1, patch_unidiff_reject, patch_unidiff_keywords):
   Rename to ...
  (patch, patch_absolute_paths, patch_offset, patch_strip1, patch_reject,
   patch_keywords): ... these, and adjust docstrings.

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

Modified: subversion/trunk/subversion/tests/cmdline/patch_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/patch_tests.py?rev=903699&r1=903698&r2=903699&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/patch_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/patch_tests.py Wed Jan 27 15:53:43 2010
@@ -49,8 +49,8 @@
 ########################################################################
 #Tests
 
-def patch_unidiff(sbox):
-  "apply a unidiff patch"
+def patch(sbox):
+  "apply a patch"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -219,8 +219,8 @@
                                        1) # dry-run
 
 
-def patch_unidiff_absolute_paths(sbox):
-  "apply a unidiff patch containing absolute paths"
+def patch_absolute_paths(sbox):
+  "apply a patch containing absolute paths"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -283,8 +283,8 @@
                                        1, # check-props
                                        1) # dry-run
 
-def patch_unidiff_offset(sbox):
-  "apply a unidiff patch with offset searching"
+def patch_offset(sbox):
+  "apply a patch with offset searching"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -497,7 +497,7 @@
                                        1) # dry-run
 
 def patch_chopped_leading_spaces(sbox):
-  "apply a unidiff patch with chopped leading spaces"
+  "apply a patch with chopped leading spaces"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -666,8 +666,8 @@
                                        1) # dry-run
 
 
-def patch_unidiff_strip1(sbox):
-  "apply a unidiff patch with -p1"
+def patch_strip1(sbox):
+  "apply a patch with -p1"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -837,7 +837,7 @@
                                        '-p1')
 
 def patch_add_new_dir(sbox):
-  "apply a unidiff patch with missing dirs"
+  "apply a patch with missing dirs"
   
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -898,8 +898,8 @@
                                        1, # check-props
                                        1) # dry-run
 
-def patch_unidiff_reject(sbox):
-  "apply a unidiff patch which is rejected"
+def patch_reject(sbox):
+  "apply a patch which is rejected"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -968,8 +968,8 @@
                                        1, # check-props
                                        1) # dry-run
 
-def patch_unidiff_keywords(sbox):
-  "apply a unidiff patch containing keywords"
+def patch_keywords(sbox):
+  "apply a patch containing keywords"
 
   sbox.build()
   wc_dir = sbox.wc_dir
@@ -1034,14 +1034,14 @@
 
 # list all tests here, starting with None:
 test_list = [ None,
-              patch_unidiff,
-              patch_unidiff_absolute_paths,
-              patch_unidiff_offset,
+              patch,
+              patch_absolute_paths,
+              patch_offset,
               patch_chopped_leading_spaces,
-              patch_unidiff_strip1,
+              patch_strip1,
               patch_add_new_dir,
-              patch_unidiff_reject,
-              patch_unidiff_keywords,
+              patch_reject,
+              patch_keywords,
             ]
 
 if __name__ == '__main__':