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

Re: Confusing error: "Cannot replace a directory from within"

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-05-10 03:01:11 CEST

"Guido van Rossum" <guido@python.org> writes:
> I tried svn switch the other day with an invalid branch URL. It gave
> me the mysterious error message "Cannot replace a directory from
> within". After a web search, mostly finding lots of other folks
> confused by the same thing. After nearly giving up, I finally realized
> the cause was a typo in my branch name. I wonder if there couldn't be
> a better diagnostic in this case? My command was
>
> svn switch svn+ssh://pythondev@svn.python.org/python/branches/py3k-unistr
>
> Surely there's no other interpretation for that argument string than
> as a branch URL that would preclude detecting the situation and
> printing a better message?
>
> I showed this to Ben Collins-Sussman who siggested to post here.

Yeah, if the URL doesn't even exist, you'd think that would be the
first error detected! What version of the Subversion client were you
running?

I just tried to reproduce this over http:// (didn't have an svn:// or
svn+ssh:// working copy at hand), but got a somewhat more reasonable
error message:

   $ svn info | grep URL
   URL: http://svn.collab.net/repos/svn/trunk/notes
   $ svn switch http://svn.collab.net/repos/svn/branches/1.4.x/notesTYPO/
   subversion/libsvn_ra_dav/util.c:1198: (apr_err=160005)
   svn: REPORT request failed on '/repos/svn/!svn/vcc/default'
   subversion/libsvn_ra_dav/util.c:630: (apr_err=160005)
   svn: Target path does not exist
   $

Still a bit cryptic, but at least in the right ballpark. This is with
trunk Subversion (i.e., 1.5-dev). I'll try setting up an svn://
repository and seeing if it gives the same error message with that...

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 10 03:01:21 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.