Show More
@@ -3470,7 +3470,9 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 | break | |
|
3473 | engine = util.compengines[compengine] | |
|
3474 | if engine.available() and engine.revlogheader(): | |
|
3475 | break | |
|
3474 | 3476 | else: |
|
3475 | 3477 | raise error.Abort( |
|
3476 | 3478 | _( |
@@ -428,7 +428,9 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 |
|
|
|
431 | e = util.compengines[comp] | |
|
432 | if e.available() and e.revlogheader(): | |
|
433 | return comp | |
|
432 | 434 | |
|
433 | 435 | # no valide compression found lets display it all for clarity |
|
434 | 436 | return b','.join(compengines) |
General Comments 0
You need to be logged in to leave comments.
Login now