# HG changeset patch # User Siddharth Agarwal # Date 2017-02-13 19:43:12 # Node ID aa25989b0658dcefbd4c1bce7c389f006f22af30 # Parent f3807a135e43b0499db12dc79697e0b9589dd095 bundle2: fix assertion that 'compression' hasn't been set `n.lower()` will return `compression`, not `Compression`. diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -518,7 +518,7 @@ class bundle20(object): """setup core part compression to """ if alg in (None, 'UN'): return - assert not any(n.lower() == 'Compression' for n, v in self._params) + assert not any(n.lower() == 'compression' for n, v in self._params) self.addparam('Compression', alg) self._compengine = util.compengines.forbundletype(alg) self._compopts = compopts