You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2017/10/30 16:50:44 UTC
svn commit: r1813802 -
/subversion/trunk/subversion/tests/cmdline/basic_tests.py
Author: stsp
Date: Mon Oct 30 16:50:44 2017
New Revision: 1813802
URL: http://svn.apache.org/viewvc?rev=1813802&view=rev
Log:
For issue #4700, add a test which exercises no-op property updates.
* basic_tests.py
(null_prop_update_last_changed_revision, test_list): New test.
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=1813802&r1=1813801&r2=1813802&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Mon Oct 30 16:50:44 2017
@@ -3167,6 +3167,35 @@ def null_update_last_changed_revision(sb
'info', sbox.path('iota'),
'--show-item', 'last-changed-revision')
+@Issue(4700)
+@XFail()
+def null_prop_update_last_changed_revision(sbox):
+ "null 'property update' updates last changed rev"
+
+ sbox.build()
+ wc_dir = sbox.wc_dir
+
+ sbox.simple_propset("prop", "value", "iota")
+ sbox.simple_commit(message='r2')
+ sbox.simple_update()
+
+ # r3: change the property
+ sbox.simple_propset("prop", "changed", "iota")
+ sbox.simple_commit(message='r3')
+ sbox.simple_update()
+
+ # r4: Revert r3.
+ sbox.simple_propset("prop", "value", "iota")
+ sbox.simple_commit(message='r4')
+ sbox.simple_update()
+
+ # Perform a null update.
+ sbox.simple_update(revision='2')
+ svntest.actions.run_and_verify_svn(["2\n"], [],
+ 'info', sbox.path('iota'),
+ '--show-item', 'last-changed-revision')
+
+
########################################################################
# Run the tests
@@ -3239,6 +3268,7 @@ test_list = [ None,
plaintext_password_storage_disabled,
filtered_ls,
null_update_last_changed_revision,
+ null_prop_update_last_changed_revision,
]
if __name__ == '__main__':