Fix an issue where calling `svn checkout` without a format version argument
over an existing 1.15-format working copy for the same URL returned an error:
$ svn checkout URL wc --compatible-version=1.15
[…]
$ svn checkout URL wc
$ svn: E155000: '…' is already a working copy for the same URL but its
format is 32 instead of the expected 31
As with `svn upgrade`, let's allow a case where a working copy has a supported
format newer than the implicit default. Note that if the user has explicitly
specified a lower --compatible-version, we're still going to return an error.
* subversion/libsvn_client/checkout.c
(svn_client__checkout_internal): Fail if the existing WC's format is different
than requested, but only if the format version was specified explicitly.
* subversion/tests/cmdline/checkout_tests.py
(checkout_over_existing_wc_same_url): New regression test.
(test_list): Run the new test.
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1907966 13f79535-47bb-0310-9956-ffa450edef68
2 files changed