Mercurial > hg
comparison mercurial/changegroup.py @ 12330:e527b8635881
bundle: make unbundle object seekable
This is only for uncompressed bundles used by bundlerepo.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 17 Sep 2010 19:02:32 -0500 |
parents | 7458de933f26 |
children | 680fe77ab5b8 |
comparison
equal
deleted
inserted
replaced
12329:7458de933f26 | 12330:e527b8635881 |
---|---|
144 self._type = alg | 144 self._type = alg |
145 def compressed(self): | 145 def compressed(self): |
146 return self._type != 'UN' | 146 return self._type != 'UN' |
147 def read(self, l): | 147 def read(self, l): |
148 return self._stream.read(l) | 148 return self._stream.read(l) |
149 def seek(self, pos): | |
150 return self._stream.seek(pos) | |
151 def tell(self): | |
152 return self._stream.tell(pos) | |
149 | 153 |
150 class headerlessfixup(object): | 154 class headerlessfixup(object): |
151 def __init__(self, fh, h): | 155 def __init__(self, fh, h): |
152 self._h = h | 156 self._h = h |
153 self._fh = fh | 157 self._fh = fh |