You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2013/06/05 16:22:11 UTC
svn commit: r1489885 -
/subversion/trunk/subversion/tests/cmdline/commit_tests.py
Author: rhuijben
Date: Wed Jun 5 14:22:11 2013
New Revision: 1489885
URL: http://svn.apache.org/r1489885
Log:
Add regression test for the 'svn ci ci' problem I just found out.
I expected to commit the current directory, but instead I committed nothing
at all without a warning that I had two 'ci'-s.
* subversion/tests/cmdline/commit_tests.py
(commit_unversioned): New test. Mark as XFail.
(test_list): Add commit_unversioned.
Modified:
subversion/trunk/subversion/tests/cmdline/commit_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/commit_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/commit_tests.py?rev=1489885&r1=1489884&r2=1489885&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/commit_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/commit_tests.py Wed Jun 5 14:22:11 2013
@@ -2945,6 +2945,24 @@ def last_changed_of_copied_subdir(sbox):
}
svntest.actions.run_and_verify_info([expected], E_copied)
+@XFail()
+def commit_unversioned(sbox):
+ "verify behavior on unversioned targets"
+
+ sbox.build(read_only=True)
+ wc_dir = sbox.wc_dir
+
+ expected_err = 'E200009: .*existing.*\' is not under version control'
+
+ # Unversioned, but existing file
+ svntest.main.file_write(sbox.ospath('existing'), "xxxx")
+ svntest.actions.run_and_verify_commit(wc_dir, None, None, expected_err,
+ sbox.ospath('existing'))
+
+ # Unversioned, not existing
+ svntest.actions.run_and_verify_commit(wc_dir, None, None, expected_err,
+ sbox.ospath('not-existing'))
+
########################################################################
# Run the tests
@@ -3017,6 +3035,7 @@ test_list = [ None,
commit_add_subadd,
commit_danglers,
last_changed_of_copied_subdir,
+ commit_unversioned,
]
if __name__ == '__main__':