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

Re: how are local changes processed by a "svn switch"?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-08-09 03:43:28 CEST

On Aug 8, 2005, at 7:31 PM, Branko Čibej wrote:
>>
> "svn switch" works just like "svn update", except that updates from
> a different URL (and modifies the working copy metadata
> accordingly). So, any differences between the original branch and
> the new branch will be merged into your local changes.

Yep, as the box in the book explains, 'svn update' and 'svn switch'
are the same codepath. 'update' is just a special case of 'switch',
where the revision changes but not the URL.

When the client does an update or switch,

  * it sends a description of all working revisions to the server

  * the server compares these revisions to a (rev, URL) location and
sends a tree delta

  * the client receives the tree delta, and applies it in a non-
destructive way to the working copy. It's all in libsvn_wc/
update_editor.c.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 9 03:45:24 2005

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.