# HG changeset patch # User mason@suse.com # Date 1124078961 28800 # Node ID 71be6dd282d14323bc91816e1cc3e22322b9c556 # Parent c749ca37aed14dee1489567b42f5784cc0c82de6 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. diff -r c749ca37aed1 -r 71be6dd282d1 mercurial/hg.py --- 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: