darcs

Patch 402 include old text in conflict marks

Title include old text in conflict marks
Superseder Nosy List ganesh
Related Issues
Status accepted Assigned To
Milestone 2.5.1

Created on 2010-09-20.20:25:25 by ganesh, last changed 2011-05-10.21:06:23 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
include-old-text-in-conflict-marks.dpatch ganesh, 2010-09-20.20:25:25 text/x-darcs-patch
unnamed ganesh, 2010-09-20.20:25:25
See mailing list archives for discussion on individual patches.
Messages
msg12592 (view) Author: ganesh Date: 2010-09-20.20:25:25
Here's a patch to add the old text to conflict marking,
as discussed on the mailing list.

I didn't write any tests for this. In my defence, I didn't
break any either. Neither of these things is really ideal!

1 patch for repository http://darcs.net/screened:

Wed Sep  8 06:46:09 BST 2010  Ganesh Sittampalam <ganesh@earth.li>
  * include old text in conflict marks
Attachments
msg12595 (view) Author: kowey Date: 2010-09-21.18:42:45
On Mon, Sep 20, 2010 at 20:25:25 +0000, Ganesh Sittampalam wrote:
> Here's a patch to add the old text to conflict marking,
> as discussed on the mailing list.

How does this behave when you have nested or other fancy conflicts?

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey@jabber.fr (Jabber or Google Talk only)
msg12596 (view) Author: ganesh Date: 2010-09-21.19:45:17
On Tue, 21 Sep 2010, Eric Kow wrote:

> On Mon, Sep 20, 2010 at 20:25:25 +0000, Ganesh Sittampalam wrote:
>> Here's a patch to add the old text to conflict marking,
>> as discussed on the mailing list.
>
> How does this behave when you have nested or other fancy conflicts?

There are two cases here:

(1) Nested conflicts where all the conflicting changes are recorded. Then 
you previously just got one set of conflict markers, often with more than 
two "result" choices. That continues to be the case; this patch just adds 
the "old" version at the top like with the simple case.

(2) A conflict where there were already unrecorded conflict markers. Here 
you previously ended up with nested sets of conflict markers that were 
typically completely unusable. I imagine that's still the case, though now 
that the old text is an explicit part of the conflict markers, and the 
unrecorded change is precisely against the old text, it might make for 
more predictable results. Still likely to be useless though!

I don't have any specific experience of (2), I could test it out if you 
think it's important.

Ganesh
msg12599 (view) Author: kowey Date: 2010-09-22.10:19:21
On Tue, Sep 21, 2010 at 20:48:22 +0100, Ganesh Sittampalam wrote:
> I don't have any specific experience of (2), I could test it out if
> you think it's important.

I don't think this should block patch application, but it could be
useful to have conflict-generation and marking scripts, not necessarily
for automated regression testing (which is tricky because we're not
so much worried about "correct" output as "desirable" output and the
latter is harder to pin down because we don't necessarily know what the
right thing to want is).  But such a thing could be useful for Eyeball
Testing.


-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:kowey@jabber.fr (Jabber or Google Talk only)
msg12601 (view) Author: ganesh Date: 2010-09-22.21:56:11
On Wed, 22 Sep 2010, Eric Kow wrote:

> On Tue, Sep 21, 2010 at 20:48:22 +0100, Ganesh Sittampalam wrote:
>> I don't have any specific experience of (2), I could test it out if
>> you think it's important.
>
> I don't think this should block patch application, but it could be
> useful to have conflict-generation and marking scripts, not necessarily
> for automated regression testing (which is tricky because we're not
> so much worried about "correct" output as "desirable" output and the
> latter is harder to pin down because we don't necessarily know what the
> right thing to want is).  But such a thing could be useful for Eyeball
> Testing.

Agreed. Probably makes sense to make regression tests with clear labels 
that it's ok to update them if you really are improving conflict marking - 
just to guard against inadvertent modification.

Ganesh
msg12824 (view) Author: darcswatch Date: 2010-10-24.20:28:37
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-948a9b9fe2af135bd7b0145f000758668c717e3a
msg14316 (view) Author: darcswatch Date: 2011-05-10.21:06:23
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-948a9b9fe2af135bd7b0145f000758668c717e3a
History
Date User Action Args
2010-09-20 20:25:25ganeshcreate
2010-09-20 20:27:00darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-948a9b9fe2af135bd7b0145f000758668c717e3a
2010-09-21 16:17:26koweysetstatus: needs-screening -> needs-review
2010-09-21 18:42:45koweysetmessages: + msg12595
2010-09-21 19:45:17ganeshsetmessages: + msg12596
2010-09-22 10:19:21koweysetmessages: + msg12599
2010-09-22 21:56:11ganeshsetmessages: + msg12601
2010-10-24 20:28:37darcswatchsetstatus: needs-review -> accepted
messages: + msg12824
2011-01-30 15:32:16ganeshsetmilestone: 2.5.1
2011-05-10 21:06:23darcswatchsetmessages: + msg14316