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

Re: How does 'merge' work?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-10-21 19:06:50 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> Philip Martin <philip@codematters.co.uk> writes:
>
> > $ vi dir/a.txt
> > $ svn ci dir
> > Sending dir/a.txt
> > Committed revision 423.
> > $ svn merge -r422:423 dir dir_branch
> >
> > This merge gets a patch that represents the changes made to dir and
> > then uses a three-way diff to apply the patch to dir_branch. Whether
> > you get conflicts depends on what you have done to dir_branch since
> > you copied it.
>
> Right. The immediate thoughts that came to my head were:
>
> 1. merge applies patches to your tree.
> 2. you can't *ever* get a conflict, unless you have local mods.

Huh? The commands above will produce a conflict if you have changes
to dir_branch that conflict with the -r422:423 changes to dir. Those
changes can be modifications in your working copy, or they can changes
that have been committed to dir_branch. In the later case your
working copy may have no local mods, but you can still get a conflict.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 21 19:07:38 2002

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

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