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

The difference between peg rev merge and 2-URL merge with the same source URLs.

From: Kozinska, Maria <Maria.Kozinska_at_sabre.com>
Date: Fri, 4 Oct 2013 12:14:11 +0100

In our project we use subversion-1.7.11 with JavaHL binding. You made great job!

We are using 2-url merge to implement behavior of single-url merge with revision ranges. We are considering replacing it. Is there any user visible impact?

We are currently using:
client.merge(source, fromRev, source, toRev, workingCopy, false, Depth.infinity, false, false, false);
which we want to replace with:
client.merge(source, Revision.HEAD, Arrays.asList(new RevisionRange(fromRev, toRev)), workingCopy, false, Depth.infinity, false, false, false);

In the svn documentation I found that whenever possible, 2-URL merge syntax should be avoided. In the mailing list archive I found a description of 2-url merge, which as I understands says that with single URL merge the user gets less merge conflicts:

     This is the most flexible type of merge, but also the most difficult
     to use. It can be used to merge the differences between two (possibly
     ancestrally unrelated) branches into a working copy of another branch.
     This type of merge should be used very carefully because the probability
     of merge conflicts is quite high. If possible, avoid doing 2-URL merges.

Is it applicable for the case where we use the same value for both source URLs? If so, can you please give us the scenario where we can see the difference?

Regards,
Maria Kozinska
Received on 2013-10-04 13:31:00 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.