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

Correct way of doing merge in a complex repository?

From: Xin LI <delphij_at_gmail.com>
Date: Wed, 25 Jun 2014 10:47:47 -0700

Hi,

In the FreeBSD project, we use "vendor branch" and merge changes that
happen there to trunk. The FreeBSD project's repository can be accessed at
svn://svn.freebsd.org/base or via web at http://svnweb.freebsd.org/base .

Now I'm facing a problem with the merging approach and would like to know
if there is a good solution to this. Long story short, I have done a
series of 'svn mv' before applying new vendor code into vendor branch so
can maintain file's history (commit message can be seen at [1]).

When merging that changeset to ^/head/contrib/file, I got a lot of
conflicts, complaining on local modification vs incoming delete.

Is there a way to keep the file history when doing the merge? The
repository was converted from CVS where we do heavy repo-copies to maintain
that.

(One way I can think about is to repeat the 'svn mv's in the target
directory, then apply the merged version against it, then do a 'svn merge
--record-only ^/vendor/file/5.11 ^/vendor/file/dist/ .' in
head/contrib/file, but I'm afraid of losing the "copy" relationship on
files added during my import).

Thanks in advance!

[1] http://lists.freebsd.org/pipermail/svn-src-vendor/2014-June/001860.html

-- 
Xin LI <delphij@delphij.net> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
Received on 2014-06-25 19:48:16 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.