[patch 06/10] Allow the changegroup generator to completely load
the buffer.
Chris Mason
mason at suse.com
Tue Aug 9 12:42:59 CDT 2005
# HG changeset patch
# User mason at suse.com
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.
Index: mine/mercurial/hg.py
===================================================================
--- mine.orig/mercurial/hg.py 2005-07-17 08:56:29.000000000 -0400
+++ mine/mercurial/hg.py 2005-07-17 09:46:06.000000000 -0400
@@ -1150,6 +1150,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:
--
More information about the Mercurial
mailing list