You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2017/10/30 14:48:16 UTC
svn commit: r1813771 -
/subversion/trunk/subversion/tests/cmdline/basic_tests.py
Author: danielsh
Date: Mon Oct 30 14:48:16 2017
New Revision: 1813771
URL: http://svn.apache.org/viewvc?rev=1813771&view=rev
Log:
* subversion/tests/cmdline/basic_tests.py
(null_update_last_changed_revision): New regression test, XFail.
(test_list): Run it.
Found by: Norbert Preining
Thread: https://mail-archives.apache.org/mod_mbox/subversion-users/201710.mbox/%3C20171030135408.sjhoae2ngf65pww2%40bulldog.preining.info%3E
Modified:
subversion/trunk/subversion/tests/cmdline/basic_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/basic_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/basic_tests.py?rev=1813771&r1=1813770&r2=1813771&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Mon Oct 30 14:48:16 2017
@@ -3140,6 +3140,33 @@ def filtered_ls(sbox):
exit_code, output, error = svntest.actions.run_and_verify_svn(
[], [], 'ls', path, '--depth=infinity', '--search=*/*')
+@XFail()
+def null_update_last_changed_revision(sbox):
+ "null 'update' updates last changed rev"
+
+ sbox.build()
+ wc_dir = sbox.wc_dir
+
+ # r2: Random text change.
+ old_contents = open(sbox.path("iota")).read()
+ sbox.simple_append("iota", "Line 2.\n")
+ sbox.simple_commit(message='r2')
+ sbox.simple_update()
+
+ # r3: Revert r2.
+ sbox.simple_append("iota", old_contents, truncate=True)
+ sbox.simple_commit(message='r3')
+ sbox.simple_update()
+
+ # Perform a null update.
+ #
+ # This used to say '3'; probably because iota@3 and iota@1 were textually
+ # identical.
+ sbox.simple_update(revision='1')
+ svntest.actions.run_and_verify_svn(["1\n"], [],
+ 'info', sbox.path('iota'),
+ '--show-item', 'last-changed-revision')
+
########################################################################
# Run the tests
@@ -3211,6 +3238,7 @@ test_list = [ None,
mkdir_parents_target_exists_on_disk,
plaintext_password_storage_disabled,
filtered_ls,
+ null_update_last_changed_revision,
]
if __name__ == '__main__':