Allow the changegroup generator to completely load the buffer.
authormason@suse.com
Sun, 14 Aug 2005 20:09:21 -0800
changeset 903 71be6dd282d1
parent 902 c749ca37aed1
child 904 969647d5100a
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.
mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -1427,6 +1427,9 @@ class localrepository:
             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: