Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 12333:44c7dfc2f6a3
bundle: make getchunk() a method
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 18 Sep 2010 18:20:34 -0500 |
parents | 680fe77ab5b8 |
children | 50946802593d |
line wrap: on
line diff
--- a/mercurial/changegroup.py Fri Sep 17 19:24:29 2010 -0500 +++ b/mercurial/changegroup.py Sat Sep 18 18:20:34 2010 -0500 @@ -150,6 +150,10 @@ return self._stream.seek(pos) def tell(self): return self._stream.tell() + def chunks(self, progress=None): + return chunkiter(self, progress) + def chunk(self): + return getchunk(self) class headerlessfixup(object): def __init__(self, fh, h):