Author: rhuijben
Date: Mon Jan 16 22:41:23 2012
New Revision: 1232202
URL: http://svn.apache.org/viewvc?rev=1232202&view=rev
Log:
Add a new XFail test that shows that 1.7 shows 'svn status not-present-file' as
a missing file, while it should show nothing as on excluded and not-existing
files, like how we handled this in 1.6.
* subversion/tests/cmdline/stat_tests.py
(status_not_present): New function.
(test_list): Add test.
Modified:
subversion/trunk/subversion/tests/cmdline/stat_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/stat_tests.py?rev=1232202&r1=1232201&r2=1232202&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/stat_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/stat_tests.py Mon Jan 16 22:41:23
2012
@@ -1993,6 +1993,23 @@ def modified_modulo_translation(sbox):
sbox.simple_revert('iota')
svntest.actions.run_and_verify_svn(None, [], [], 'status', wc_dir)
+@XFail()
+def status_not_present(sbox):
+ "no status on not-present and excluded nodes"
+
+ sbox.build()
+ wc_dir = sbox.wc_dir
+
+ # iota is a shell script.
+ sbox.simple_rm('iota')
+ svntest.main.run_svn(None, 'up', '--set-depth', 'exclude', sbox.ospath('A'))
+ sbox.simple_commit()
+
+ svntest.actions.run_and_verify_svn(None, [], [],'status',
+ sbox.ospath('iota'),
+ sbox.ospath('A'),
+ sbox.ospath('no-file'))
+
########################################################################
# Run the tests
@@ -2035,6 +2052,7 @@ test_list = [ None,
wc_wc_copy_timestamp,
wclock_status,
modified_modulo_translation,
+ status_not_present,
]
if __name__ == '__main__':