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

Re: SVN 1.5 - Beta 1 - mkdir behavior

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: Tue, 18 Mar 2008 20:50:27 -0500

On Tue, Mar 18, 2008 at 12:38 PM, Karl Heinz Marbaise <khmarbaise_at_gmx.de> wrote:
> Hi there,
>
> i have observed a little bit odd behavior (in my opinion) of the mkdir
> comment in relationship with the --parents option...
>
> I have created a clean new repository and after that i have given the
> following on the command line:
>
> svn mkdir --parents \
> $URL/project1/trunk \
> $URL/project1/tags \
> $URL/project1/branches \
> $URL/project2/trunk \
> $URL/project2/tags \
> $URL/project2/branches -m"- First structure"
>
> and got an error message:
> svn: File already exists: filesystem '...', transaction '0-0', path
> '/project1'
>
> Is this intended behavior ? Or is my understanding not correct...
> I had expected that those two intermediate directories (project1 and
> project2) would have been created and the structure in the repository as
> well....
>
> Can someone enlighten me...
> Thanks in advance...
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
> Hauptstrasse 177 USt.IdNr: DE191347579
> 52146 Würselen http://www.soebes.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>
>

I am not really a developer here, but this is an interesting issue. I
think you'll get an idea of what is going on if you allow it to open
an editor instead of providing a log message on the command-line. You
get the following:

A $URL/project1
A $URL/project1/trunk
A $URL/project1
A $URL/project1/tags
A $URL/project1
A $URL/project1/branches
A $URL/project2
A $URL/project2/trunk
A $URL/project2
A $URL/project2/tags
A $URL/project2
A $URL/project2/branches

So it seems that it is expanding the intermediate targets for each argument
independently, not looking at any other targets being made. I would certainly
say that this is unexpected behavior.

Personally I think it would be worth a bug report, as it really does
not match what
you would get from the Linux command-line 'mkdir -p' command.

By the way, why isn't the '-p' short option available for this command?

Troy

-- 
Beware of spyware. If you can, use the Firefox browser. - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-19 02:50:38 CET

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.