Mercurial > hg
changeset 30589:182cacaa4c32
cg1packer: fix `compressed` method
`cg1packer.compressed()` returns True even if `self._type` is 'UN'. This patch
fixes it.
author | Stanislau Hlebik <stash@fb.com> |
---|---|
date | Wed, 14 Dec 2016 09:53:56 -0800 |
parents | be0e7af80543 |
children | 74eecb93c617 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Thu Dec 15 12:17:08 2016 +0100 +++ b/mercurial/changegroup.py Wed Dec 14 09:53:56 2016 -0800 @@ -154,7 +154,7 @@ # 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):