# HG changeset patch # User Matt Mackall # Date 2010-09-18 00:02:32 # Node ID e527b8635881fe8541155dbe033cfa3ab55cb47e # Parent 7458de933f266bf45de0e4748f08d5a3111d975f bundle: make unbundle object seekable This is only for uncompressed bundles used by bundlerepo. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -146,6 +146,10 @@ class unbundle10(object): return self._type != 'UN' def read(self, l): return self._stream.read(l) + def seek(self, pos): + return self._stream.seek(pos) + def tell(self): + return self._stream.tell(pos) class headerlessfixup(object): def __init__(self, fh, h):