darcs

Issue 817 fix bug in conflict-handling with darcs-2 semantics.

Title fix bug in conflict-handling with darcs-2 semantics.
Priority bug Status resolved
Superseder Nosy List beschmi, dagit, droundy, kowey, ppessi, tommy
Assigned To droundy Topics Conflicts

Created on 2008-04-28.17:05:50 by ppessi, last changed 2008-09-04.21:33:20 by admin.

Files
File name Uploaded Type Edit Remove
demobug817.dpatch ppessi, 2008-05-07.11:40:25 application/octet-stream
Messages (mbox)
msg4367 (view) Author: ppessi Date: 2008-04-28.17:05:48
Darcs creates inconsistent conflictors in a conflict fight scenario
when using darcs-2 format.

In conflict fight scenario we have two repositories A and B. After
pulling from A and finding conflict, B resolves it unilaterally. This
is repeated with each new change pulled from A.

Bug is probably triggered because B reverts to the situation before
first pull. In other words, all the new patches recorded by B are
identical.

Please find attached a test script, output from two test runs, first
with --hashed, second with --darcs-2. The exact-version is included.

Darcs pull --verbose output:

Pulling from "../RA"...
darcs: Inconsistent patch:
conflictor {{
|hunk ./file 1
|-0
|+let it b
|conflictor [
|hunk ./file 1
|-0
|+let it b
|]
||:
|hunk ./file 1
|-0
|+a0
|:
hunk ./file 1
-0
+let it b
|hunk ./file 1
|-0
|+a0
|:
hunk ./file 1
-a0
+a1
|:
hunk ./file 1
-0
+let it b
|:
hunk ./file 1
-0
+a0
}} [
hunk ./file 1
-0
+let it b
]
|hunk ./file 1
|-0
|+a0
|hunk ./file 1
|-a0
|+a1
|:
hunk ./file 1
-a1
+a2
mm conflicts with im in is_consistent where nmm is
{{
|hunk ./file 1
|-0
|+a0
|hunk ./file 1
|-a0
|+a1
|conflictor [
|hunk ./file 1
|-0
|+a0
|hunk ./file 1
|-a0
|+a1
|]
||:
|hunk ./file 1
|-0
|+let it b
|:
hunk ./file 1
-0
+let it b
}}
Command exited with non-zero status 1
msg4378 (view) Author: kowey Date: 2008-04-29.17:47:29
Escalating (+droundy)
msg4411 (view) Author: kowey Date: 2008-04-30.19:36:39
I notice you have not attached the test script [or it didn't make it to the
tracker].  Could you submit it as a patch to darcs, under the bugs/ directory? 
Or barring that, attach it?  Thanks!
msg4548 (view) Author: ppessi Date: 2008-05-07.11:40:25
2008/4/30, Eric Kow <bugs@darcs.net>:
>  I notice you have not attached the test script [or it didn't make it to the
>  tracker].  Could you submit it as a patch to darcs, under the bugs/ directory?
>  Or barring that, attach it?  Thanks!

Here you go.
msg4549 (view) Author: kowey Date: 2008-05-07.12:56:54
Alright, I've submitted your patch.  I'm guessing that either Jason or David are
the best people to look at this.  Assigning to David.
msg4551 (view) Author: droundy Date: 2008-05-07.13:50:21
I've isolated the bug here to Darcs.Patch.Real.geteff, for what it's worth. 
This is not surprising, as I'd say that this is the trickiest function to get
right in all the new formalism.  :(
msg4553 (view) Author: droundy Date: 2008-05-07.15:13:42
The following patch updated the status of Issue817 to be resolved in the =
unstable branch:

* resolve Issue817: fix bug in conflict-handling with darcs-2 semantics.=20
This bug was due to the buggy use of a buggy function called
depends_uponFL.  I've removed this function, and am making this note
explicit so that noone else (including myself) will make the mistake of
resurrecting this function from the past.

You can view the patch details online here:=20
http://darcs.net/cgi-bin/darcs.cgi/unstable/?c=3Dannotate&p=3D20080507144=
950-72aca-25383dc9aa6240304203aac32eed1ddf563aeb9a.gz

Browse related patches: unstable | stable

History
Date User Action Args
2008-04-28 17:05:50ppessicreate
2008-04-29 17:47:31koweysetpriority: bug
nosy: + droundy, kowey
status: unread -> chatting
messages: + msg4378
2008-04-29 17:48:28koweylinkissue818 superseder
2008-04-30 17:37:52koweysettopic: + Conflicts
nosy: droundy, tommy, beschmi, kowey, dagit, ppessi
2008-04-30 19:36:40koweysetnosy: droundy, tommy, beschmi, kowey, dagit, ppessi
messages: + msg4411
2008-05-07 11:40:26ppessisetfiles: + demobug817.dpatch
nosy: droundy, tommy, beschmi, kowey, dagit, ppessi
messages: + msg4548
2008-05-07 12:56:56koweysetnosy: droundy, tommy, beschmi, kowey, dagit, ppessi
messages: + msg4549
assignedto: droundy
2008-05-07 13:50:24droundysetnosy: droundy, tommy, beschmi, kowey, dagit, ppessi
messages: + msg4551
2008-05-07 13:57:07koweysetstatus: chatting -> in-progress
nosy: droundy, tommy, beschmi, kowey, dagit, ppessi
2008-05-07 15:13:44droundysetstatus: in-progress -> resolved-in-unstable
nosy: droundy, tommy, beschmi, kowey, dagit, ppessi
messages: + msg4553
title: Inconsistent conflictor in a conflict fight scenario -> fix bug in conflict-handling with darcs-2 semantics.
2008-09-04 21:33:20adminsetstatus: resolved-in-unstable -> resolved
nosy: droundy, tommy, beschmi, kowey, dagit, ppessi