[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Switch of Mirror-Repo to Master?

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Tue, 02 Sep 2008 12:48:13 -0400

Achim Spangler wrote:
> is it possible to change a mirror repo to a master repo?


> I'm not sure, whether there are some properties stored in a dump file of a
> mirror repo, so that even a dump->load cycle would retain the "this is a
> mirror of master foo" information.

You don't need to dump->load at all. There are 4 revprops (unversioned
properties) stored in revision 0 of the slave (mirror) repo:

Unversioned properties on revision 0:
   svn:sync-from-uuid : blah-blah-blah-blah
   svn:sync-last-merged-rev : ##
   svn:date : ISO_DATE
   svn:sync-from-url : URL://to/master/path

If you have already set the UUID of the slave/mirror to be the same as
the UUID of the server, all you need to do to convert from slave to
master is to delete those properties (actually you don't even *need* to
do that, but it makes things cleaner).

Then you use 'svn switch --relocate' in each working copy to point to
the new repo path...



To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-02 18:48:48 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.