# HG changeset patch # User Benoit Boissinot # Date 2009-01-12 16:51:57 # Node ID 930a2be7e875f034335c961142b65a3d06c76c5a # Parent f2fa1a9eede60ef1e07bd45a014609e14198bbfb bdiff: add comment about normalization diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -261,6 +261,7 @@ static struct hunklist diff(struct line free(pos); + /* normalize the hunk list, try to push each hunk towards the end */ for (curr = l.base; curr != l.head; curr++) { struct hunk *next = curr+1; int shift = 0;