mercurial/upgrade.py
changeset 44382 f0027a3dd7cb
parent 43805 ad84fc97d120
child 44452 9d2b2df2c2ba
--- a/mercurial/upgrade.py	Wed Feb 19 13:39:00 2020 +0530
+++ b/mercurial/upgrade.py	Wed Feb 19 17:30:04 2020 +0100
@@ -449,7 +449,14 @@
 
     @classmethod
     def fromconfig(cls, repo):
-        return repo.ui.config(b'format', b'revlog-compression')
+        compengines = repo.ui.configlist(b'format', b'revlog-compression')
+        # return the first valid value as the selection code would do
+        for comp in compengines:
+            if comp in util.compengines:
+                return comp
+
+        # no valide compression found lets display it all for clarity
+        return b','.join(compengines)
 
 
 @registerformatvariant