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

Re: Create repo by copying

From: Mark Clements <gmane_at_kennel17.co.uk>
Date: 2006-08-24 19:37:05 CEST

"Garrett Rooney" <rooneg@electricjellyfish.net> wrote in message
news:7edfeeef0608230606q30dfce0bh3b10a3c41ccc6c4e@mail.gmail.com...
> On 8/23/06, Mark Clements <gmane@kennel17.co.uk> wrote:
> > I've created a new repository using svnadmin, and then modified the conf
and
> > hooks dirs so that they contain symlinks to a central config folder, so
that
> > my multiple repositories can work from a single set of config files.
> >
> > This repo is stored in ~/svn/repos/template/
> >
> > I plan to create repos by copying this folder,
> >
> > e.g.
> > cp -r ~/svn/repos/template/ ~/svn/repos/proj1/
> >
> > Will this work, or is there some magic hokum going on that requires you
to
> > use svnadmin to create the repo?
>
> That is a bad idea. Each subversion repository has an internal UUID
> (universally unique identifier) so that you can tell them appart.
> Just copying an existing repository will seem to work, but you will
> end up with multiple repositories with the same UUID, which could
> result in problems later on if Subversion needs to ask the question
> "is the repository at URL number 1 the same as the repository at URL
> 2?"
>

It also occurred to me that the date for revision 0 would always be the
same, although I'd decided that this doesn't matter in our situation. The
above is a bit more serious though, so I'll do it the 'proper' way.

Thanks for the info.

- Mark Clements

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 24 19:40:52 2006

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.