You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jens Seidel <je...@users.sourceforge.net> on 2006/01/10 10:31:37 UTC

svn mkdir error message can be improved

Hi,

I tried to create multiple directories using svn mkdir at once and failed
with

$ svn mkdir -m" " file://$(pwd)/repos/dir1/dir2
svn: File not found: transaction '0-1', path '/dir1/dir2'

because dir1/ doesn't yet exists. (I used version 1.3.0 (r17949).)

I suggest to improve the error message. Using -m"" I get a usage hint
(is this wanted?) and without -m switch svn opens an editor *before*
it fails.

Remark: A related issue is 
http://subversion.tigris.org/issues/show_bug.cgi?id=1776

PS: Please CC: me.

Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn mkdir error message can be improved

Posted by Julian Foad <ju...@btopenworld.com>.
Julian Foad wrote:
> Jens Seidel wrote:
> 
>> I tried to create multiple directories using svn mkdir at once and failed
>> with
>>
>> $ svn mkdir -m" " file://$(pwd)/repos/dir1/dir2
>> svn: File not found: transaction '0-1', path '/dir1/dir2'
>>
>> because dir1/ doesn't yet exists. (I used version 1.3.0 (r17949).)
>>
>> I suggest to improve the error message.
> 
> OK, I agree it's not a very good error message.

Filed as issue #2500 '"svn mkdir URL" gives poor error message when parent 
doesn't exist'.

Similar to issue #2295 '"svn mkdir URL" gives poor error message when directory 
exists'.

Related to issue #1776 'copy and mkdir should create intermediate directories' 
(in that this error would go away if that were done).

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn mkdir error message can be improved

Posted by Julian Foad <ju...@btopenworld.com>.
Jens Seidel wrote:
> Hi,
> 
> I tried to create multiple directories using svn mkdir at once and failed
> with
> 
> $ svn mkdir -m" " file://$(pwd)/repos/dir1/dir2
> svn: File not found: transaction '0-1', path '/dir1/dir2'
> 
> because dir1/ doesn't yet exists. (I used version 1.3.0 (r17949).)
> 
> I suggest to improve the error message.

OK, I agree it's not a very good error message.

> Using -m"" I get a usage hint (is this wanted?)

That's because, in your shell, all of the following are identical:

   -m"" file://...
   "-m" file://...
   -m file://...

so in fact you are not giving an empty argument to "-m".  To do so, write:

   -m "" file://...


> and without -m switch svn opens an editor *before* it fails.

Yes, that's expected.

> Remark: A related issue is 
> http://subversion.tigris.org/issues/show_bug.cgi?id=1776

For the benefit of other readers, that issue's summary is:

   "copy and mkdir should create intermediate directories"

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org