--- a/mercurial/patch.py Sun Dec 14 18:13:41 2008 +0100 +++ b/mercurial/patch.py Fri Dec 05 14:51:50 2008 +0100 @@ -774,9 +774,7 @@ def readline(self): if self.buf: - l = self.buf[0] - del self.buf[0] - return l + return self.buf.pop(0) return self.fp.readline() def __iter__(self):