[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 12 Feb 2011 17:31:50 +0200

Stefan Sperling wrote on Sat, Feb 12, 2011 at 13:59:16 +0100:
> What I am saying is that the following should error out:
> $ svnadmin create repos
> $ cd repos/db
> $ svnadmin create repos
> $

Oh, sorry, Stefan. I missed that it doesn't error when the cwd is
repos/db. (When the cwd is elsewhere it does error.)

The fix is to convert PATH (a dirent) to an absolute path before passing
it in svn_repos_create() to svn_repos_find_root_path(). If someone
could remind me what the APR wrapper for os.path.abspath() is, I'll
commit a fix.



> just like this already does:
> $ svnadmin create repos
> $ cd repos
> $ svnadmin create repos
> subversion/svnadmin/main.c:600: (apr_err=165002)
> subversion/libsvn_repos/repos.c:1393: (apr_err=165002)
> svnadmin: E165002: 'repos' is a subdirectory of an existing repository rooted at '.'
Received on 2011-02-12 16:36:47 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.