[darcs-devel] [issue2550] conflict resolution for non-hunks is rotten

Ben Franksen bugs at darcs.net
Fri Sep 22 15:37:29 UTC 2017


New submission from Ben Franksen <ben.franksen at online.de>:

What I mean is the standard resolution as implemented in
Darcs.Patch.Conflict.mangleUnravelled: unless the input consists only of
hunks, it simply takes the head of the list. In other words: pick any
version, whatever comes first.

You can see that when you pull 'addfile ./x' into a repo with 'adddir
./x' (see issue2548 for what else goes wrong when you do that) using
--mark-conflicts: for darcs1 it gives you the directory x, for darcs2 it
gives you the file x. Neither is a good solution: it should instead
produce the equivalent of the usual "conflict markup" in the file
system. That is:

The standard conflict resolution for name collisions (add or move with
the same target path) should be (pending) moves for *both* to some not
yet existing name. For instance, if the target is "./path/to/thing",
then I would like to get ./path/to/thing.~1~ and ./path/to/thing.~2~ so
I can properly compare the two and chose one or create a mixture of both.

(Ideally, instead of increasing numbers, we should append the hash,
perhaps suitably shortened, of the named patches that contain the
conflicting prims. This is a different issue, however, as it pertains to
hunk conflicts in very much the same way.)

----------
messages: 19663
nosy: bf
status: unknown
title: conflict resolution for non-hunks is rotten

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2550>
__________________________________


More information about the darcs-devel mailing list