changeset 30877:aa25989b0658 stable

bundle2: fix assertion that 'compression' hasn't been set `n.lower()` will return `compression`, not `Compression`.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 13 Feb 2017 11:43:12 -0800
parents f3807a135e43
children 18fb3cf572b4 f01df5d2fe49
files mercurial/bundle2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <alg>"""
         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