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

Re: Problems creating trunk and branches from existing repository

From: Ryan Schmidt <subversion-2006Q2_at_ryandesign.com>
Date: 2006-05-02 22:42:16 CEST

On May 2, 2006, at 22:33, Allison Bloodworth wrote:

> I made a trunk directory and a branches/allison directory and
> then moved everything from events to events/trunk (see commands
> used below).
> Then to copy what was in the trunk directory to the allison branch,
> I was
> unable to do move things in the way the book suggested:
>
> svn copy svn+ssh://events@svn.berkeley.edu/svn/events/trunk
> svn+ssh://events@svn.berkeley.edu/svn/events/branches/Allison
>
> ...because it created a trunk directory under "allison".

This behavior is correct and matches that of the Unix copy command:
"cp a b" creates a directory "a" inside "b" if "b" already exists,
otherwise it copies "a" to "b". To get the behavior you wanted,
simply do not create the directory "Allison" in advance, and let the
"svn copy" command create it for you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 2 22:43:33 2006

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.