[Home]AutomaticMerge

MeatballWiki | RecentChanges | Random Page | Indices | Categories

When resolving an EditConflict, you can use the 'merge' or 'diff3' command line tool. 'merge' is used by CVS internally to merge two different revisions of the same ancestor, for example.

Imagine the following three files. B is the common ancestor of both A and C.

A:

    test
    foo
    test

B:

    test
    test
    test

C:

    test
    bar
    test

Now call it:

    merge a b c

You will get an error:

    merge: warning: conflicts during merge

And A will now contain conflict markers:

    test
    <<<<<<< a
    foo
    =======
    bar
    >>>>>>> c
    test

If you use diff3, the output is slightly different, and it is printed to stdout instead of written to a file:

    diff3 -m a b c

Result:

    test
    <<<<<<< a
    foo
    ||||||| b
    test
    =======
    bar
    >>>>>>> c
    test

Given an appropriate text formatting rule, this may make perfect sense. It is certainly a more HumaneInterface than being presented two edit boxes. For non-trivial pages that is far too difficult to resolve manually.


LangueFrançaise : FusionAutomatique


CategoryUncommonWikiTechnology

Discussion

MeatballWiki | RecentChanges | Random Page | Indices | Categories
Edit text of this page | View other revisions
Search: