Submitter | phabricator |
---|---|
Date | Nov. 8, 2020, 1:23 a.m. |
Message ID | <differential-rev-PHID-DREV-bsobe7rkts7kxzdhx5ee-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/47554/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/pure/bdiff.py b/mercurial/pure/bdiff.py --- a/mercurial/pure/bdiff.py +++ b/mercurial/pure/bdiff.py @@ -51,7 +51,10 @@ shift += 1 r.append((a1, b1, l1 + shift)) prev = a2 + shift, b2 + shift, l2 - shift - r.append(prev) + + if prev is not None: + r.append(prev) + return r