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 2022/03/08 11:29:45 UTC

svn commit: r1898729 - /subversion/trunk/subversion/tests/cmdline/upgrade_tests.py

Author: danielsh
Date: Tue Mar  8 11:29:44 2022
New Revision: 1898729

URL: http://svn.apache.org/viewvc?rev=1898729&view=rev
Log:
multi-wc-format: Add a test for the change in r1898523.

The test passes on ≥r1898523 and fails before that.

* subversion/tests/cmdline/upgrade_tests.py
  (basic_upgrade): Extend the test.

Modified:
    subversion/trunk/subversion/tests/cmdline/upgrade_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/upgrade_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/upgrade_tests.py?rev=1898729&r1=1898728&r2=1898729&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/upgrade_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/upgrade_tests.py Tue Mar  8 11:29:44 2022
@@ -270,6 +270,14 @@ def basic_upgrade(sbox):
   svntest.actions.run_and_verify_svn(None, not_wc % 'A',
                                      'upgrade', sbox.ospath('A'))
 
+  # Upgrading to a future version gives an error
+  expected_stderr = 'svn: E200007: Cannot guarantee working copy compatibility' \
+                    ' with the requested version.*3[.]0'
+  svntest.actions.run_and_verify_svn(None, expected_stderr,
+                                     sbox.wc_dir, 'upgrade',
+                                     '--compatible-version',
+                                     '3.0')
+
   # Now upgrade the working copy
   svntest.actions.run_and_verify_svn(None, [],
                                      'upgrade', sbox.wc_dir)