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

Re: Branching Noob Question

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-16 23:27:37 CEST

On Aug 16, 2006, at 22:43, Chris Fouts wrote:

>> This is particularly remedial, I know (I almost hate to ask
>> the question), but I can't quite understand what I'm doing
>> wrong. I'm trying to create a branch from the trunk and,
>> after the branch is complete, the branch includes the trunk
>> directory. Using this command
>>
>> svn cp -m "Creating a 3.5.5 maintenance branch"
>> http://example.com/repos/myrepos/trunk/
>> http://example.com/repos/myrepos/branches/maint/3.5.5/
>>
>> I end up with the following:
>>
>> example.com/branches/maint/currentversion/trunk
>>
>> What I want, of course, is for the /trunk level to go away and
>> its contents to live directly beneath the /currentversion
>> directory. I'm new to Subversion (obviously), but I've done
>> this before with the expected results. I guess I just got
>> lucky, though, because I have no idea what I did differently.
>
> I had this problem. I believe the ../branches/maint/
> dirs must already exist to do what you want to do.
>
> svn mkdir http://example.com/repos/myrepos/branches/maint
> svn commit (???)
> svn cp -m "blah blah"
> http://example.com/repos/myrepos/trunk/
> http://example.com/repos/myrepos/branches/maint/3.5.5

Yes, and the 3.5.5 directory must NOT already exist, or else you get
the behavior you observed. This is just like the Unix cp command, FYI.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 16 23:36:35 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.