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

Re: Check in to a branch

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-04-25 04:08:18 CEST

On Apr 24, 2007, at 20:59, ying lcs wrote:

> I am following the example here to create a branch in subversion.
>
> http://svnbook.red-bean.com/en/1.0/ch04s07.html
>
> $ svn copy http://svn.example.com/repos/calc/trunk \
> http://svn.example.com/repos/calc/branches/stable-1.0 \
> -m "Creating stable branch of calc project."
>
> Committed revision 377.
>
> My question is if I check out my working directory from "/calc/
> trunk/",
> How can I commit my change to 'calc/branches/stable-1.0 ' branch?

Either check out from the branch instead:

$ svn checkout http://svn.example.com/repos/calc/branches/stable-1.0
working-copy

Then make your changes in that working copy.

Or if you already have a working copy of trunk with changes in it
that you want to commit to the branch, then switch your existing
working copy to the branch:

$ svn switch http://svn.example.com/repos/calc/branches/stable-1.0
working-copy

Then you can commit your changes.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 25 04:08:51 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.