changeset 903:71be6dd282d1

Allow the changegroup generator to completely load the buffer. This makes is possible to delete or truncate away revisions and still use the changegroup later.
author mason@suse.com
date Sun, 14 Aug 2005 20:09:21 -0800
parents c749ca37aed1
children 969647d5100a
files mercurial/hg.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Sun Aug 14 20:09:09 2005 -0800
+++ b/mercurial/hg.py	Sun Aug 14 20:09:21 2005 -0800
@@ -1427,6 +1427,9 @@
             def __init__(self, generator):
                 self.g = generator
                 self.buf = ""
+            def fillbuf(self):
+                self.buf += "".join(self.g)
+
             def read(self, l):
                 while l > len(self.buf):
                     try: