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

Re: svnadmin create complains about subrepositories

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Thu, 10 Feb 2011 14:27:17 -0600

On Feb 10, 2011, at 09:15, Fabian Richter wrote:

> Why is that a "feature" and can you please add an --force switch to
> still being able to create Repositories within the path of another?

I should add: this check was added to Subversion to prevent people from doing things that make no sense.

If you believe you know better than Subversion (and I continue to think you do not in this case) then it is of course trivial to bypass this check:

$ svnadmin create repo1
$ svnadmin create repo1/repo2
svnadmin: 'repo1/repo2' is a subdirectory of an existing repository rooted at 'repo1'
$ svnadmin create repo2
$ mv repo2 repo1
$ ls repo1
README.txt db hooks repo2
conf format locks

Et voilą, you have repo2's directory inside repo1's directory.

So no --force switch or modification of the Subversion source code is necessary to accomplish this questionable goal.
Received on 2011-02-10 21:28:01 CET

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.