mercurial/commands.py
changeset 37769 6a7ff5816c5f
parent 37768 5527aa808dea
child 37776 141017c7f7a9
--- a/mercurial/commands.py	Tue Apr 17 02:41:25 2018 +0200
+++ b/mercurial/commands.py	Tue Apr 17 03:07:01 2018 +0200
@@ -1260,7 +1260,10 @@
     # level without a) formalizing the bundlespec changes to declare it
     # b) introducing a command flag.
     compopts = {}
-    complevel = ui.configint('experimental', 'bundlecomplevel')
+    complevel = ui.configint('experimental',
+                             'bundlecomplevel.' + bundlespec.compression)
+    if complevel is None:
+        complevel = ui.configint('experimental', 'bundlecomplevel')
     if complevel is not None:
         compopts['level'] = complevel