]> git.neil.brown.name Git - wiggle.git/commit
Encourage more context into conflict reports.
authorNeil Brown <neilb@suse.de>
Tue, 8 May 2012 08:54:11 +0000 (18:54 +1000)
committerNeil Brown <neilb@suse.de>
Tue, 8 May 2012 08:54:11 +0000 (18:54 +1000)
commitf2aba8f729258265efea8636fc762ff9d09adf77
tree78a645838822cf4d35da2093de9142f718b7d5b1
parent7e95c539d4ed1c82e983d5a4eef9b21e8d790a20
Encourage more context into conflict reports.

Conflict reports currently don't contain much surrounding
'Extraneous' text.  When the patch didn't really apply at all,
this context is very useful.
So encourage at least 3 lines of context from Extraneous or
Unchanged texts.
If it mostly comes from Unchanged text it isn't quite so useful,
so reduce the requirement.

Update self-tests to match.  In most cases these are an improvement.
In a couple of case we maybe get a bit more context than really
necessary, but that is better than not enough.

Signed-off-by: NeilBrown <neilb@suse.de>
13 files changed:
merge2.c
tests/linux/inode-justrej/lmerge
tests/linux/md-loop/merge
tests/linux/md-resync/merge
tests/linux/raid5build/merge
tests/linux/rpc_tcp_nonagle/merge
tests/simple/all-different/merge
tests/simple/conflict/merge
tests/simple/conflictmixed/lmerge
tests/simple/conflictmixed/merge
tests/simple/multiple-add/lmerge
tests/simple/multiple-add/merge
tests/simple/show-wiggle-1/Wmerge