# HG changeset patch # User Siddharth Agarwal # Date 1487014992 28800 # Node ID aa25989b0658dcefbd4c1bce7c389f006f22af30 # Parent f3807a135e43b0499db12dc79697e0b9589dd095 bundle2: fix assertion that 'compression' hasn't been set `n.lower()` will return `compression`, not `Compression`. diff -r f3807a135e43 -r aa25989b0658 mercurial/bundle2.py --- a/mercurial/bundle2.py Fri Feb 10 18:20:58 2017 +0100 +++ b/mercurial/bundle2.py Mon Feb 13 11:43:12 2017 -0800 @@ -518,7 +518,7 @@ """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