You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Shahaf <da...@elego.de> on 2013/03/29 00:25:43 UTC

'mkdir' UI buglet

Another one I randomly ran into:


% $svn mkdir -qmm file://$PWD/r/$RANDOM
svn: E000002: Try 'svn mkdir --parents' instead?
svn: E000002: Can't create directory '/home/daniel/src/svn/t1/r/db/transactions/1-5.txn': No such file or directory



I get what's happening --- the code, presumably, checks for
APR_FROM_OS_ERROR(ENOENT) --- but, well, it shouldn't do that for URL
targets.

(If we ever try to create a directory under .svn/ during an 'svn mkdir
PATH' operation, and fail to do so, we shouldn't suggest --parents
either; but I'm not sure how we would detect that.)

Daniel

Re: 'mkdir' UI buglet

Posted by Daniel Shahaf <da...@elego.de>.
Bert Huijben wrote on Thu, Mar 28, 2013 at 23:42:18 +0000:
> --parents is supported for urls below a repository, but I agree that we should reduce the number of errors that show this hint.
> 

In that case the error code should be SVN_ERR_FS_NOT_FOUND, not ENOENT.

Re: 'mkdir' UI buglet

Posted by Bert Huijben <be...@qqmail.nl>.
--parents is supported for urls below a repository, but I agree that we should reduce the number of errors that show this hint.


    Bert



Sent from Windows Mail



From: Daniel Shahaf
Sent: ‎Friday‎, ‎March‎ ‎29‎, ‎2013 ‎12‎:‎25‎ ‎AM
To: dev@subversion.apache.org

Another one I randomly ran into:


% $svn mkdir -qmm file://$PWD/r/$RANDOM
svn: E000002: Try 'svn mkdir --parents' instead?
svn: E000002: Can't create directory '/home/daniel/src/svn/t1/r/db/transactions/1-5.txn': No such file or directory



I get what's happening --- the code, presumably, checks for
APR_FROM_OS_ERROR(ENOENT) --- but, well, it shouldn't do that for URL
targets.

(If we ever try to create a directory under .svn/ during an 'svn mkdir
PATH' operation, and fail to do so, we shouldn't suggest --parents
either; but I'm not sure how we would detect that.)

Daniel