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

Re: (Silly?) question regarding branch and switch

From: Joshua Varner <jlvarner_at_gmail.com>
Date: 2006-01-05 00:35:04 CET

On 1/4/06, Karl Auer <kauer@biplane.com.au> wrote:
> On Wed, 4 Jan 2006 14:33:57 -0600, Joshua Varner <jlvarner@gmail.com> wrote:
> > > I'm trying to get a grip on branches.
> > [...]> You might try one of these lists:
> > http://subclipse.tigris.org/servlets/ProjectMailingListList
>
> Thanks Josh. Yes I might, but I figured the Subversion users list was a better place to ask "what exactly is switch supposed to do".
>
> As I read the SVN book, it is supposed to make your working copy look like a specified revision. It is described as a variant of update. When I make a change to a branch (as far as I can tell), the change seems to happen in both the branch and the trunk. This seems manifestly impossible, so I'm wondering if I really understand what switch is supposed to do.
>
svn switch make your working copy look like a specific URL at a given revision,
e.g. switching from trunk to a branch involves only downloading the difference
between the two rather than the whole thing.

Since your working copy is now rooted at a different URL, then any subsequent
operations should happen at that location (i.e. in the branch you switched too).
The trunk should be unaffected. It is possible that only a subdirectory was
switched to the branch so that the changes in that directory went to the branch
and the rest went to the trunk. Since commits are repository wide this
can result
happen within a single transaction, similar tricks are used to fake
partial checkouts.

I would suggest asking on the subclipse list, since the operations and
results were all
viewed through it. Where subclipse roots the operations and how their
repos browser
works will be better known there. You might try examining the files
from the command
line, and diffing them with the trunk to see if the command line shows
the results you
expected. If so it may just be a matter of interpreting the repo
browser incorrectly,
otherwise it may have been an incorrect or buggy invocation of switch.

Hope that helps,
Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 5 00:41:55 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.