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.

Thanks.

Daniel

> 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 '.'

Reply via email to