Show More
@@ -3470,6 +3470,8 b' def newreporequirements(ui, createopts):' | |||
|
3470 | 3470 | compengines = ui.configlist(b'format', b'revlog-compression') |
|
3471 | 3471 | for compengine in compengines: |
|
3472 | 3472 | if compengine in util.compengines: |
|
3473 | engine = util.compengines[compengine] | |
|
3474 | if engine.available() and engine.revlogheader(): | |
|
3473 | 3475 | break |
|
3474 | 3476 | else: |
|
3475 | 3477 | raise error.Abort( |
@@ -428,6 +428,8 b' class compressionengine(formatvariant):' | |||
|
428 | 428 | # return the first valid value as the selection code would do |
|
429 | 429 | for comp in compengines: |
|
430 | 430 | if comp in util.compengines: |
|
431 | e = util.compengines[comp] | |
|
432 | if e.available() and e.revlogheader(): | |
|
431 | 433 | return comp |
|
432 | 434 | |
|
433 | 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