I've been working on updating the relocate code for wc-ng, and it's
leading to maze of twisty passages---and questions. Such as this one:
do we support 'switch --relocate' on single files? The API doesn't
complain if you try it, but neither trunk or 1.6.x behave as I would
expect.
On 1.6.x (note that switch tests 36 is a local test):
[[[
249-dynamic:cmdline Hyrum$ ../../svn/svn info svn-test-work/
working_copies/switch_tests-36/iota Path: svn-test-work/working_copies/
switch_tests-36/iotaName: iota
URL: file:///Users/Hyrum/dev/svn-1.6.x/subversion/tests/cmdline/svn-test-work/repositories/switch_tests-36/iota
Repository Root: file:///Users/Hyrum/dev/svn-1.6.x/subversion/tests/cmdline/svn-test-work/repositories/switch_tests-36
Repository UUID: 7ef0c61d-0def-4b03-9476-bf24f9ae6614
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: jrandom
Last Changed Rev: 1
Last Changed Date: 2009-06-06 01:06:01 +0200 (Sat, 06 Jun 2009)
Text Last Updated: 2009-06-06 01:06:01 +0200 (Sat, 06 Jun 2009)
Checksum: 2d18c5e57e84c5b8a5e9a6e13fa394dc
249-dynamic:cmdline Hyrum$ ../../svn/svn switch --relocate file:///Users/Hyrum/dev/svn-trunk3/subversion/tests/cmdline/svn-test-work/repositories/switch_tests-36/iota
file:///Users/Hyrum/dev/svn-trunk3/subversion/tests/cmdline/svn-test-work/repositories/switch_tests-36.other/iota
svn-test-work/working_copies/switch_tests-36/iota
249-dynamic:cmdline Hyrum$ ../../svn/svn info svn-test-work/
working_copies/switch_tests-36/iota Path: svn-test-work/working_copies/
switch_tests-36/iotaName: iota
URL: file:///Users/Hyrum/dev/svn-1.6.x/subversion/tests/cmdline/svn-test-work/repositories/switch_tests-36/iota
Repository Root: file:///Users/Hyrum/dev/svn-1.6.x/subversion/tests/cmdline/svn-test-work/repositories/switch_tests-36
Repository UUID: 7ef0c61d-0def-4b03-9476-bf24f9ae6614
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: jrandom
Last Changed Rev: 1
Last Changed Date: 2009-06-06 01:06:01 +0200 (Sat, 06 Jun 2009)
Text Last Updated: 2009-06-06 01:06:01 +0200 (Sat, 06 Jun 2009)
Checksum: 2d18c5e57e84c5b8a5e9a6e13fa394dc
]]]
On trunk I get something similar, but the "iota" is left off the URL.
I think this is a bug on trunk, but 1.6.x certainly doesn't switch the
URL of the file to the new repository. Do we support this use case,
if and if not, shouldn't we error when somebody tries to do it?
-Hyrum
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2359862
Received on 2009-06-06 01:09:25 CEST