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

Re: [Subclipse-users] Switch working copy to new branch/tag

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 11 Aug 2009 12:22:32 -0400

On Tue, Aug 11, 2009 at 11:58 AM, Chris
Velevitch<chris.velevitch_at_gmail.com> wrote:
> On Tue, Aug 11, 2009 at 23:42, Mark Phippard<markphip_at_gmail.com> wrote:
>> Suppose your WC is pointing to trunk and you create a branch/tag from
>> your WC.  This creates the branch/tag in the repository based on the
>> revisions loaded in your WC.  However, your WC is still pointing at
>> trunk and you next update/commit will come from trunk.  If you want to
>> commit to the branch, you need to switch your WC.
>
> Does that mean then, if I commit some changes to the trunk, the WC
> will no longer be pointing to the HEAD of the trunk, because the head
> of the trunk has now moved?

I am tempted to say I do not understand the question. I do understand
it, but not in context of the previous stuff. I do not see the
relationship of this question to creating a branch and switching.

This link to the SVN book answers your question:

http://svnbook.red-bean.com/en/1.5/svn.basic.in-action.html#svn.basic.in-action.revs

Read all the way to the end.

> Also, if, without switching, I commit some more changes and then
> create a new tag, does this mean the last 2 created tags have the same
> set of files?

No. The first tag would not have the changes you made after creating
it. Why would you expect them to be the same?

> Does updating switch the WC to the HEAD?

Update to HEAD option updates to HEAD. Update to version ... brings
up a dialog that lets you specify the revision.

Switch is a special form of update that is typically used to point you
to a new location within the same repository. For example from trunk
to the 1.x branch.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2382572
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-08-11 18:22:45 CEST

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

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