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 2017/12/08 21:01:51 UTC

svn commit: r1817565 - /subversion/trunk/subversion/tests/cmdline/shelve_tests.py

Author: julianfoad
Date: Fri Dec  8 21:01:51 2017
New Revision: 1817565

URL: http://svn.apache.org/viewvc?rev=1817565&view=rev
Log:
* subversion/tests/cmdline/shelve_tests.py
  (shelve_prop_changes): New test.
  (test_list): Run it.

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

Modified: subversion/trunk/subversion/tests/cmdline/shelve_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/shelve_tests.py?rev=1817565&r1=1817564&r2=1817565&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/shelve_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/shelve_tests.py Fri Dec  8 21:01:51 2017
@@ -81,6 +81,39 @@ def basic_shelve(sbox):
 
 #----------------------------------------------------------------------
 
+def shelve_prop_changes(sbox):
+  "shelve prop changes"
+
+  sbox.build()
+  was_cwd = os.getcwd()
+  os.chdir(sbox.wc_dir)
+  sbox.wc_dir = ''
+  wc_dir = ''
+
+  # Make some changes to the working copy
+  sbox.simple_propset('p', 'v', 'A')
+  sbox.simple_propset('p', 'v', 'A/mu')
+
+  modified_output = svntest.actions.get_virginal_state(wc_dir, 1)
+  modified_output.tweak('A', status=' M')
+  modified_output.tweak('A/mu', status=' M')
+  svntest.actions.run_and_verify_status(wc_dir, modified_output)
+
+  # Shelve; check there are no longer any modifications
+  svntest.actions.run_and_verify_svn(None, [],
+                                     'shelve', 'foo')
+  virginal_output = svntest.actions.get_virginal_state(wc_dir, 1)
+  svntest.actions.run_and_verify_status(wc_dir, virginal_output)
+
+  # Unshelve; check the original modifications are here again
+  svntest.actions.run_and_verify_svn(None, [],
+                                     'unshelve', 'foo')
+  svntest.actions.run_and_verify_status(wc_dir, modified_output)
+
+  os.chdir(was_cwd)
+
+#----------------------------------------------------------------------
+
 
 ########################################################################
 # Run the tests
@@ -88,6 +121,7 @@ def basic_shelve(sbox):
 # list all tests here, starting with None:
 test_list = [ None,
               basic_shelve,
+              shelve_prop_changes,
              ]
 
 if __name__ == '__main__':