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

Re: Branch management. Merge tracking.

From: Stefan Haller <haller_at_ableton.com>
Date: 2004-12-08 21:01:27 CET

Nick Patavalis <npat@inaccessnetworks.com> wrote:

> I see! So you 're diffing between two distinct points of two branches,
> and not between two "history points" of a single branch. For some
> reason I always thought that merging is only for the latter, but you
> are obviously right. To say it more generally, and please correct me
> if I'm wrong: You are merging into the trunk-wc the differences
> between the trunk---at the last trunk-to-branch merge point---and the
> head of the branch.

Yes, exactly.

> This may sound a bit confusing at first, but It works. The way I
> managed to wrap my mind around it is: If no changes have been made in
> the trunk since r27, then the merge is "mathematically" guaranteed to
> have no conflicts, and the resulting WC is guaranteed to be
> *identical* to the head of the branch (right?). So any conflicts, or
> discrepancies, that may result from "your" merge are due to changes
> made on the trunk, since the last sync-point (i.e. since r27); which
> is something impossible to avoid.

That's correct.

Actually, it's not confusing at all, because it follows exactly the same
model as the relationship between a working copy and a repository.
Merging from trunk to branch is like "svn update"; merging back from
branch to trunk is like "svn commit" (at which point you are committing
the changes between the state of the repository when you last updated,
and the current state of the wc).

-- 
Stefan Haller
Ableton
http://www.ableton.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 8 21:03:40 2004

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.