RE: Moving a repository with svn:externals using absolute paths (URLs)
From: Geoff Field <Geoff_Field_at_aapl.com.au>
Date: Thu, 19 Jun 2014 11:35:44 +1000
________________________________
On Wed, Jun 18, 2014 at 9:32 AM, Brisset, Nicolas <nicolas.brisset_at_airbus.com<mailto:nicolas.brisset_at_airbus.com>> wrote:
We upgraded from 1.2 to 1.8 in one fell swoop. We don't use externals, which made things easier. However, most of our 1.2 repositories were in BDB format, which off-the-shelf Windows binaries of 1.8 don't handle. (I am somewhat averse to trying to recompile for Windows, as that would entail finding and setting up the correct compilation environment for it - too much like work.)
I wrote a batch file to do a dump, reload and rename on each repository. Basically, the old repositories were left in place, but with the name changed to append "_BDB" and the re-loaded repositories in FSFS format run live. Full history now lives in both sets of repositories, with the BDB versions retained in case we ever need to go back and double-check.
The simple answer I'd recommend is "don't". The amount of time you are going to spend trying to cross migrate old build environments is expensive, fragile, and requires polluting your history to generate a new, and misleading one, pointing to the correct SVN server.
Set aside the legacy configuration, incompatible as it is with modern "relative" URL's, for reference and log analysis only. Keep it pristine, and don't muck with the history. Bring only the relevant components to your new server, on a scheduled cutover date, and take the opportunity to discard bulky binaries and branches and logs and security sensitive debris with the move to a new server with a new URL. Drop a README.txt in place on the new server pointing to the old, legacy repository, and kick it aside.
This is basically what we did, but without mucking about to edit dump files, etc. As Nico says, keep the originals pristine. Disk space is cheap (although backup on alternative storage might not be).
In our duplication effort, we also set all the permissions on the old repositories to read-only, to limit the chances of cross-contamination.
Regards,
Geoff
-- Apologies for the auto-generated legal boilerplate added by our IT department: - The contents of this email, and any attachments, are strictly private and confidential. - It may contain legally privileged or sensitive information and is intended solely for the individual or entity to which it is addressed. - Only the intended recipient may review, reproduce, retransmit, disclose, disseminate or otherwise use or take action in reliance upon the information contained in this email and any attachments, with the permission of Australian Arrow Pty. Ltd. - If you have received this communication in error, please reply to the sender immediately and promptly delete the email and attachments, together with any copies, from all computers. - It is your responsibility to scan this communication and any attached files for computer viruses and other defects and we recommend that it be subjected to your virus checking procedures prior to use. - Australian Arrow Pty. Ltd. does not accept liability for any loss or damage of any nature, howsoever caused, which may result directly or indirectly from this communication or any attached files.Received on 2014-06-19 03:36:19 CEST |
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.