bundle: make unbundle object seekable
authorMatt Mackall <mpm@selenic.com>
Fri, 17 Sep 2010 19:02:32 -0500
changeset 12330 e527b8635881
parent 12329 7458de933f26
child 12331 40935b59518b
bundle: make unbundle object seekable This is only for uncompressed bundles used by bundlerepo.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Fri Sep 17 19:02:26 2010 -0500
+++ b/mercurial/changegroup.py	Fri Sep 17 19:02:32 2010 -0500
@@ -146,6 +146,10 @@
         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):