diff -r e7d3b509af8b -r 08a0f04b56bd mercurial/pure/mpatch.py --- a/mercurial/pure/mpatch.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/pure/mpatch.py Mon Jan 25 00:05:27 2010 -0600 @@ -22,7 +22,8 @@ # temporary string buffers. def patches(a, bins): - if not bins: return a + if not bins: + return a plens = [len(x) for x in bins] pl = sum(plens) @@ -30,7 +31,8 @@ tl = bl + bl + pl # enough for the patches and two working texts b1, b2 = 0, bl - if not tl: return a + if not tl: + return a m = StringIO() def move(dest, src, count):