diff -r 884b595f5195 -r 5326e4ef1dab mercurial/pure/mpatch.py --- a/mercurial/pure/mpatch.py Mon Oct 02 18:18:57 2017 +0100 +++ b/mercurial/pure/mpatch.py Fri Sep 29 15:49:20 2017 +0000 @@ -75,7 +75,8 @@ # copy all the patches into our segment so we can memmove from them pos = b2 + bl m.seek(pos) - for p in bins: m.write(p) + for p in bins: + m.write(p) for plen in plens: # if our list gets too long, execute it