--- 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