diff -r bd8875b6473c -r a1d2fc32bb99 mercurial/patch.py --- a/mercurial/patch.py Mon Nov 20 23:02:32 2017 -0800 +++ b/mercurial/patch.py Mon Nov 20 23:13:09 2017 -0800 @@ -149,6 +149,8 @@ raise StopIteration return l + __next__ = next + inheader = False cur = []