Re: Scripting an svn:externals change
From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Fri, 3 Sep 2010 15:29:17 -0500
On Sep 3, 2010, at 08:36, BRM wrote:
>> Do not use sed to edit a dumpfile. Use a tool designed for the task, like
As others said, because if you change the content of files, the checksums won't match. Just use svndumptool to change the svn:externals properties, and for any file content changes, make them and commit them from a working copy as normal.
>>> 5. Load the edited dump into a new repository (Example2)
If the content of the new repository is different from the content of the old repository (and it is, if you changed the properties), then you must give them different UUIDs. That is the sole purpose of the UUID -- to identify when repositories differ.
>> Since the UUID has changed, everyone must check out new working copies; it is
And as I said, dump and load and changing UUID requires checking out new working copies. You cannot relocate or update existing working copies. If that's too restrictive, then yes, you'll have to skip the dump and load, just change the externals in HEAD, and accept that you can't check out a past revision and have the externals work.
> Question: If I checked them out again would the client realize that I have a
I'm not sure exactly what you meant (checked out new working copies? from the new repository?), but note that the dump format does not include information about hook scripts, config files or locks. If you dump and load, the new repository will have the default hook script templates (so, no hook scripts), the default configuration, and nothing locked. But I think you can manually bring the relevant files from the old repository to the new one to preserve this data.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.