# HG changeset patch # User Stanislau Hlebik # Date 2016-12-14 17:53:56 # Node ID 182cacaa4c32330c0466b7111a75d060830783e8 # Parent be0e7af80543cbd711fc91135d0c9f51dafba452 cg1packer: fix `compressed` method `cg1packer.compressed()` returns True even if `self._type` is 'UN'. This patch fixes it. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -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):