mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
cg1packer: fix compressed
method
`cg1packer.compressed()` returns True even if `self._type` is 'UN'. This patch fixes it.
This commit is contained in:
parent
396c998f12
commit
da605718f2
@ -154,7 +154,7 @@ class cg1unpacker(object):
|
||||
# These methods (compressed, read, seek, tell) all appear to only
|
||||
# be used by bundlerepo, but it's a little hard to tell.
|
||||
def compressed(self):
|
||||
return self._type is not None
|
||||
return self._type is not None and self._type != 'UN'
|
||||
def read(self, l):
|
||||
return self._stream.read(l)
|
||||
def seek(self, pos):
|
||||
|
Loading…
Reference in New Issue
Block a user