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

Re: [PATCH] Add repository UUIDs (fixes issue 1037)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-12-16 00:46:29 CET

mark benedetto king <bking@answerfriend.com> writes:

> On Sun, Dec 15, 2002 at 04:52:23PM +0000, Philip Martin wrote:
> > How is this going to work when a repository is dumped/loaded? Should
> > a dump/load change the UUID? Should the UUID be dumped? There would
> > appear to be cases where we want the loaded repository to have the
> > same UUID as the dumped repository, and other cases where they should
> > be distinct.
> >
>
> Sounds like we need one or more of the following:
>
> 1.) boolean option to dump for whether to include the UUID
> 2.) boolean option to load for whether to use the UUID
> 3.) "svnadmin reposid"
>
> (1) and/or (2) should be enough, but I have a feeling at least one user
> will accidentally overwrite their repository's UUID, thus invalidating
> all WCs. It might be nice to give them (3) to fix that sort of problem.
>
> What would you suggest?

How about

 - always include the UUID in the dump
 - by default only load if the dump UUID and the repository UUID match
 - provide --ignore-uuid to load even if the UUIDs don't match
 - provide --update-uuid to load and update the repository UUID

Existing repositories don't have a UUID. Either the dump/load needs
to support dumps without a UUID, or we provide a command that creates
a UUID in an existing repository, and then insist that one is created
before dumping.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 16 00:47:09 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.