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

Re: svn mkdir error message can be improved

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2006-01-11 22:07:55 CET

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
Received on Wed Jan 11 22:09:45 2006

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.