# HG changeset patch # User Martin von Zweigbergk # Date 2016-11-17 23:51:33 # Node ID 81c80ed7c9916ed51eb7f7ab5f31a5c7c291da31 # Parent 5a81c4aa63136d40df8442d4b8920e2d8e1ca7fe bundle2: fix broken compression engine assertion bundletype() is a function, so it needs to be called, and it is documented to return a 2-tuple. This code is untested, so that's why we haven't noticed the bad assertion. Differential Revision: https://phab.mercurial-scm.org/D5155 diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -839,7 +839,7 @@ class unbundle20(unpackermixin): params = self._readexact(paramssize) self._processallparams(params) yield params - assert self._compengine.bundletype == 'UN' + assert self._compengine.bundletype()[1] == 'UN' # From there, payload might need to be decompressed self._fp = self._compengine.decompressorreader(self._fp) emptycount = 0