Show More
@@ -3470,6 +3470,8 b' def newreporequirements(ui, createopts):' | |||||
3470 | compengines = ui.configlist(b'format', b'revlog-compression') |
|
3470 | compengines = ui.configlist(b'format', b'revlog-compression') | |
3471 | for compengine in compengines: |
|
3471 | for compengine in compengines: | |
3472 | if compengine in util.compengines: |
|
3472 | if compengine in util.compengines: | |
|
3473 | engine = util.compengines[compengine] | |||
|
3474 | if engine.available() and engine.revlogheader(): | |||
3473 | break |
|
3475 | break | |
3474 | else: |
|
3476 | else: | |
3475 | raise error.Abort( |
|
3477 | raise error.Abort( |
@@ -428,6 +428,8 b' class compressionengine(formatvariant):' | |||||
428 | # return the first valid value as the selection code would do |
|
428 | # return the first valid value as the selection code would do | |
429 | for comp in compengines: |
|
429 | for comp in compengines: | |
430 | if comp in util.compengines: |
|
430 | if comp in util.compengines: | |
|
431 | e = util.compengines[comp] | |||
|
432 | if e.available() and e.revlogheader(): | |||
431 | return comp |
|
433 | return comp | |
432 |
|
434 | |||
433 | # no valide compression found lets display it all for clarity |
|
435 | # no valide compression found lets display it all for clarity |
General Comments 0
You need to be logged in to leave comments.
Login now