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 2010/09/07 14:25:47 UTC
svn commit: r993327 -
/subversion/trunk/subversion/tests/cmdline/revert_tests.py
Author: rhuijben
Date: Tue Sep 7 12:25:46 2010
New Revision: 993327
URL: http://svn.apache.org/viewvc?rev=993327&view=rev
Log:
* subversion/tests/cmdline/revert_tests.py
(status_of_missing_dir_after_revert_replaced_with_history_dir):
Expect that G/pi, G/rho and G/tau are also reverted, as their
information is not lost in single-DB. Then restore the expected
result to be like it was in 1.6. (Revert leaves unversioned files,
not additions). Finally expect that nodes under a missing file
are still visible in single-db.
This resolves some older concerns and fixes the test.
(test_list): Remove wimp marking from
status_of_missing_dir_after_revert_replaced_with_history_dir.
Modified:
subversion/trunk/subversion/tests/cmdline/revert_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/revert_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/revert_tests.py?rev=993327&r1=993326&r2=993327&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/revert_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/revert_tests.py Tue Sep 7 12:25:46 2010
@@ -851,29 +851,37 @@ def status_of_missing_dir_after_revert_r
os.path.join(G_path, 'alpha'),
os.path.join(G_path, 'beta')]
+ if svntest.main.wc_is_singledb(wc_dir):
+ # These nodes are not lost in single-db
+ revert_paths += [ os.path.join(G_path, 'pi'),
+ os.path.join(G_path, 'rho'),
+ os.path.join(G_path, 'tau')]
+
expected_output = svntest.verify.UnorderedOutput([
"Reverted '%s'\n" % path for path in revert_paths])
svntest.actions.run_and_verify_svn(None, expected_output, [], "revert", "-R",
G_path)
- ### GS (Oct 11): this is stupid. after a revert, there should be
- ### *NO* status whatsoever. ugh. this status behavior
- ### has been twiddled over the 1.6/1.7 dev cycle, but
- ### it "should" just disappear.
- ### Is it a bug that we'd need to run revert twice to finish the job?
+ # Revert leaves these added nodes as unversioned
expected_output = svntest.verify.UnorderedOutput(
- ["A " + os.path.join(G_path, "pi") + "\n",
- "A " + os.path.join(G_path, "rho") + "\n",
- "A " + os.path.join(G_path, "tau") + "\n"])
+ ["? " + os.path.join(G_path, "pi") + "\n",
+ "? " + os.path.join(G_path, "rho") + "\n",
+ "? " + os.path.join(G_path, "tau") + "\n"])
svntest.actions.run_and_verify_svn(None, expected_output, [],
"status", wc_dir)
svntest.main.safe_rmtree(G_path)
- expected_output = svntest.verify.UnorderedOutput(
- ["! " + G_path + "\n"])
+ if svntest.main.wc_is_singledb(wc_dir):
+ expected_output = svntest.verify.UnorderedOutput(
+ ["! " + G_path + "\n",
+ "! " + os.path.join(G_path, "alpha") + "\n",
+ "! " + os.path.join(G_path, "beta") + "\n"])
+ else:
+ expected_output = svntest.verify.UnorderedOutput(
+ ["! " + G_path + "\n"])
svntest.actions.run_and_verify_svn(None, expected_output, [], "status",
wc_dir)
@@ -1054,8 +1062,7 @@ test_list = [ None,
revert_propdel__file,
revert_replaced_with_history_file_1,
status_of_missing_dir_after_revert,
- Wimp("revert behavior needs better definition",
- status_of_missing_dir_after_revert_replaced_with_history_dir),
+ status_of_missing_dir_after_revert_replaced_with_history_dir,
revert_replaced_with_history_file_2,
revert_tree_conflicts_in_updated_files,
revert_add_over_not_present_dir,