[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: ying lcs <yinglcs_at_gmail.com>
Date: 2007-04-25 21:49:55 CEST

Thanks I have a question about the switch command:

After I did the switch command:
svn checkout http://svn.example.com/repos/calc/branches/stable-1.0 .

Why it said 'Updated to revision 114.'

When I create the branch 'stable-1.0' it is revision 112 and after
that I add 2 more revisions to the trunk and I have no commit to the
branch.

So my branch revision is 112 and the latest revision to the trunk is 114.

But when I do 'switch' to the Branch, why it updates to 114? should it
be 112 instead?

Thank you.

On 4/24/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
> 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 21:50:20 2007

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