Show More
@@ -683,7 +683,11 b' def determine_upgrade_actions(' | |||||
683 |
|
683 | |||
684 | newactions.append(d) |
|
684 | newactions.append(d) | |
685 |
|
685 | |||
686 | newactions.extend(o for o in sorted(optimizations) if o not in newactions) |
|
686 | newactions.extend( | |
|
687 | o | |||
|
688 | for o in sorted(optimizations, key=(lambda x: x.name)) | |||
|
689 | if o not in newactions | |||
|
690 | ) | |||
687 |
|
691 | |||
688 | # FUTURE consider adding some optimizations here for certain transitions. |
|
692 | # FUTURE consider adding some optimizations here for certain transitions. | |
689 | # e.g. adding generaldelta could schedule parent redeltas. |
|
693 | # e.g. adding generaldelta could schedule parent redeltas. |
@@ -467,6 +467,7 b' modern form of the option' | |||||
467 | re-delta-fulladd |
|
467 | re-delta-fulladd | |
468 | every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved. |
|
468 | every revision will be re-added as if it was new content. It will go through the full storage mechanism giving extensions a chance to process it (eg. lfs). This is similar to "re-delta-all" but even slower since more logic is involved. | |
469 |
|
469 | |||
|
470 | ||||
470 | $ hg debugupgrade --optimize re-delta-parent --quiet |
|
471 | $ hg debugupgrade --optimize re-delta-parent --quiet | |
471 | requirements |
|
472 | requirements | |
472 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !) |
|
473 | preserved: dotencode, fncache, generaldelta, revlogv1, share-safe, sparserevlog, store (no-rust !) | |
@@ -480,6 +481,20 b' modern form of the option' | |||||
480 | - manifest |
|
481 | - manifest | |
481 |
|
482 | |||
482 |
|
483 | |||
|
484 | passing multiple optimization: | |||
|
485 | ||||
|
486 | $ hg debugupgrade --optimize re-delta-parent --optimize re-delta-multibase --quiet | |||
|
487 | requirements | |||
|
488 | preserved: * (glob) | |||
|
489 | ||||
|
490 | optimisations: re-delta-multibase, re-delta-parent | |||
|
491 | ||||
|
492 | processed revlogs: | |||
|
493 | - all-filelogs | |||
|
494 | - changelog | |||
|
495 | - manifest | |||
|
496 | ||||
|
497 | ||||
483 | unknown optimization: |
|
498 | unknown optimization: | |
484 |
|
499 | |||
485 | $ hg debugupgrade --optimize foobar |
|
500 | $ hg debugupgrade --optimize foobar |
General Comments 0
You need to be logged in to leave comments.
Login now