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

RE: Re: Creating branches

From: <stephen.3.odonnell_at_bt.com>
Date: 2007-01-10 17:05:13 CET

Ah! I told you it was a stupid question.

Its because I created the directory first, and then copied into it, instead of just doing the copy to a directory that does not exist and letting svn create it.

I can do what I wanted to now - thanks!

-----Original Message-----
From: Ulrich Eckhardt [mailto:eckhardt@satorlaser.com]
Sent: 10 January 2007 15:57
To: users@subversion.tigris.org
Subject: Re: Creating branches

On Wednesday 10 January 2007 16:38, stephen.3.odonnell@bt.com wrote:
> Sorry for the probable silly question ...
>
> My repository is like
>
> Product
> Trunk/
> Dir1/
> Dir2/
> Branch/
> Rel_1.0
> Tags/
>
> I want to create a branch of everything under but not including trunk in
> branch/Rel_1.0. ie I want to achieve:
>
> Product
> ...
> ...
> Branch
> Rel_1.0/
> Dir1/
> Dir2/
> ...
>
> If I use svn copy -m "creating branch" svn://server/product/trunk
> svn://server/product/branch/Rel_1.0 I get
>
> Product
> ...
> ...
> Branch
> trunk
> Rel_1.0/
> Dir1/
> Dir2/

This surprises me, didn't you mix up some things? And, with above command, did
you perhaps first create 'branch/Rel_1.0'[1] and then use that as target for
the copy? In that case, IIRC Subversion implicitly assumes that the target is
the dir to copy _into_, otherwise it is the dir to copy _to_, i.e. it does a
copy&rename.

> Using svn copy -m "creating branch" svn://server/product/trunk/*
> svn://server/product/branch/Rel_1.0 fails with the error:
>
> svn: Path 'svn://server/product/trunk/*' does not exist in revision 117
>
> Can I easily do what I want? Does wildcard expansion not work?

I don't think SVN does any wildcard expansion. Typically, the expansion is
done by your shell and never by client programs. This can be a nasty feature
when you are not aware of it!

cheers

Uli

[1] Subversion can cope with spaces in filenames and also with filenames that
don't fit into the 8.3 schema, so there is no need to use cryptic names.

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 10 17:06:49 2007

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

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