Skip to content
Snippets Groups Projects
Commit b970fece153d authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

compression: only declare revlog support for available engine

Even if we know that an engine support revlog compression, the Mercurial process
still won't support it if the compression engine is not available.
parent f0203c3406e7
No related branches found
No related tags found
No related merge requests found
......@@ -643,7 +643,7 @@
# Add derived requirements from registered compression engines.
for name in util.compengines:
engine = util.compengines[name]
if engine.revlogheader():
if engine.available() and engine.revlogheader():
supported.add(b'exp-compression-%s' % name)
return supported
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment