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

Problems Merging from Trunk to Branch

From: Mike Todd <MikeTodd_at_onebookshelf.com>
Date: Tue, 29 Apr 2008 11:23:49 -0400

Here's the scenario: we have our trunk, and a dev branch which was
created from revision 300 of the trunk. Sometimes we'll find a bug, fix
it on trunk, and want to merge that fix back into dev, when that same
file has also changed on dev. Here's the commands we run:

cd branches/dev
svn merge -r300:HEAD http://svn.example.org/foo/trunk/file.php file.php

However, this results in a conflict, and when I open
branches/dev/file.php, it shows the entirety of the dev version,
=======, then the entirety of the trunk version below that. Even though
in the test case I ran just now, the files are exactly the same other
than one line added to dev, and one line (in a different place) added to
the trunk version.

What am I doing wrong? Is there any way to merge the change from the
trunk back to dev, when both files were changed (in different places),
without it creating a conflict?

--Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-29 17:29:40 CEST

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.