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

Re: Moving repositories up a level

From: Ben Reser <ben_at_reser.org>
Date: Fri, 06 Jun 2014 15:53:12 -0700

On 6/6/14, 2:41 PM, John Adams wrote:
> Come to think of it, I should specify that I'm moving a repository formerly
> like this:
>
> http://svn.server.example.com/dev/APP
>
> to
>
> http://svn.server.example.com/dev/APP

I'm guessing you mean:

       http://svn.server.example.com/dev/APP

  to
       http://svn.server.example.com/APP

> when the file system is
>
> /data/svn/repos/dev #contains APP, APP1, APP2, app cetera
>
> and is now to look like
>
> /data/svn/repos/APP # soon to be followed by APP1, APP2, and so on
>
> so eventually we can rm -rf /data/svn/repos/dev

Which is consistent with what you're saying here.

I would advise against doing this. We have had numerous bugs over the years
with repositories hosted at the root of the server.

This issue from back in February is a good example of how these sorts of issues
crop up (yes that's a security issue):
http://subversion.apache.org/security/CVE-2014-0032-advisory.txt

Our test suite does not cover this scenario and it's not likely to do so
because it makes the setup for it subject to conflicts with people wanting to
run it against already installed setups. So we're almost certainly bound to
create bugs around this in the future.

So my recommendation would be to avoid this sort of setup and always root the
Location for svn at some path, e.g. http://svn.server.example.com/svn/repo1 etc..

As to your original question. Are you saying that you're splitting the
repositories out of a repository named dev that had multiple projects in it.
In that case you probably need to dump, filter the dump for the paths that
matter, and the load. Based on your question it looks like you're trying to
just take the dump and modify it by hand which you might need to do some of if
the filtered dump still has issues but I wouldn't start with hand modifying it.

If you Google for "splitting subversion repositories" you'll find lots of
people explaining how they've done this.

Finally, I'd suggest you take a look at ESR's How to Ask Questions FAQ,
especially the section on being precise and informative:
http://www.catb.org/esr/faqs/smart-questions.html

I point you in that direction not to be dismissive of your question, but to try
and help you get more from the list. The emails you've sent in many cases
might not have received any response at all because it's hard to understand
what you're trying to ask.
Received on 2014-06-07 00:53:38 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.