From: Ian Jackson Date: Sat, 11 Aug 2018 10:51:04 +0000 (+0100) Subject: git-debrebase: merge: Check that merge resolution is correct X-Git-Tag: archive/debian/6.7~135 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=99068bbe18c8fe83714639cc4ba9adcab5d71e59 git-debrebase: merge: Check that merge resolution is correct Signed-off-by: Ian Jackson --- diff --git a/git-debrebase b/git-debrebase index 2b257dd6..3d8d6f33 100755 --- a/git-debrebase +++ b/git-debrebase @@ -1296,7 +1296,16 @@ sub walk ($;$$$) { $cl->{MergeInterchangeBaseInfo}, @{ $cl->{Parents} }; $last_anchor = $cl->{MergeBestAnchor}; - # xxx need to check the tree somehow + my $check_differs = get_differs $build, $cl->{CommitId}; + # Breakwater changes which were in each side of the + # merge should be in MergeCreateMergedBreakwaters + # output. Upstream changes are exactly the result + # of merge_series. So the only difference should + # be potential laundry results. + $nomerge->(sprintf + "merge misresolved: tree is not the same (%s %s d.%#x)", + $cl->{CommitId}, $build, $check_differs) + if $check_differs & ~D_PAT_ADD; print "Merge resolution successful.\n"; next; } else {