diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -149,6 +149,8 @@ raise StopIteration return l + __next__ = next + inheader = False cur = []