subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject merging adjacent changes
Date Mon, 22 Feb 2016 17:23:56 GMT
"Bert Huijben" <bert@qqmail.nl> writes:

> Personally I agree that I would like to see a text-conflict raised in
> this specific case where the change regions touch each other. But then
> there is that old discussion, ....

I added the test because we had already, perhaps inadvertently,
implemented the behaviour.

Back in 2003 we didn't have 'svn resolve' so resolving a text conflict
required the user to edit the file.  Now we have 'svn resolved' which
may make resolving text conflicts easier.  Perhaps that allows us to
change Subversion to create more conflicts?

We know merge is essentially imperfect or fuzzy, the question is where
to draw the line.  Which, if any, of these cases should merge without
conflict and what should the merged result be?

1.  common           first              second
    ancestor         branch             branch

    A                A                  A
    B                Bbr1               B
    C                C                  Cbr2
    D                D                  D


2.  common           first              second
    ancestor         branch             branch

    A                A                  A
    B                Bbr1               B
    C                new                new
    D                C                  C
                     D                  D

3.  common           first              second
    ancestor         branch             branch

    A                A                  A
    B                Bbr1               B
    C                new                new
    D                C                  Cbr2
                     D                  D

4.  common           first              second
    ancestor         branch             branch

    A                A                  A
    B                Bbr1               B
    C                newbr1             newbr2
    D                C                  Cbr2
                     D                  D

There are probably more cases.

-- 
Philip Martin
WANdisco

Mime
View raw message