Show More
@@ -1274,6 +1274,17 b' def upgraderepo(' | |||||
1274 | ui.write((b'\n')) |
|
1274 | ui.write((b'\n')) | |
1275 | ui.write(b'\n') |
|
1275 | ui.write(b'\n') | |
1276 |
|
1276 | |||
|
1277 | def printoptimisations(): | |||
|
1278 | optimisations = [a for a in actions if a.type == optimisation] | |||
|
1279 | optimisations.sort(key=lambda a: a.name) | |||
|
1280 | if optimisations: | |||
|
1281 | ui.write(_(b'optimisations: ')) | |||
|
1282 | write_labeled( | |||
|
1283 | [a.name for a in optimisations], | |||
|
1284 | "upgrade-repo.optimisation.performed", | |||
|
1285 | ) | |||
|
1286 | ui.write(b'\n\n') | |||
|
1287 | ||||
1277 | def printupgradeactions(): |
|
1288 | def printupgradeactions(): | |
1278 | for a in actions: |
|
1289 | for a in actions: | |
1279 | ui.write(b'%s\n %s\n\n' % (a.name, a.upgrademessage)) |
|
1290 | ui.write(b'%s\n %s\n\n' % (a.name, a.upgrademessage)) | |
@@ -1327,6 +1338,7 b' def upgraderepo(' | |||||
1327 | ) |
|
1338 | ) | |
1328 |
|
1339 | |||
1329 | printrequirements() |
|
1340 | printrequirements() | |
|
1341 | printoptimisations() | |||
1330 | printupgradeactions() |
|
1342 | printupgradeactions() | |
1331 |
|
1343 | |||
1332 | unusedoptimize = [i for i in alloptimizations if i not in actions] |
|
1344 | unusedoptimize = [i for i in alloptimizations if i not in actions] | |
@@ -1345,6 +1357,7 b' def upgraderepo(' | |||||
1345 | # Else we're in the run=true case. |
|
1357 | # Else we're in the run=true case. | |
1346 | ui.write(_(b'upgrade will perform the following actions:\n\n')) |
|
1358 | ui.write(_(b'upgrade will perform the following actions:\n\n')) | |
1347 | printrequirements() |
|
1359 | printrequirements() | |
|
1360 | printoptimisations() | |||
1348 | printupgradeactions() |
|
1361 | printupgradeactions() | |
1349 |
|
1362 | |||
1350 | upgradeactions = [a.name for a in actions] |
|
1363 | upgradeactions = [a.name for a in actions] |
@@ -183,6 +183,8 b' An upgrade of a repository created with ' | |||||
183 | requirements |
|
183 | requirements | |
184 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
184 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
185 |
|
185 | |||
|
186 | optimisations: re-delta-parent | |||
|
187 | ||||
186 | re-delta-parent |
|
188 | re-delta-parent | |
187 | deltas within internal storage will choose a new base revision if needed |
|
189 | deltas within internal storage will choose a new base revision if needed | |
188 |
|
190 | |||
@@ -207,6 +209,8 b' modern form of the option' | |||||
207 | requirements |
|
209 | requirements | |
208 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
210 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
209 |
|
211 | |||
|
212 | optimisations: re-delta-parent | |||
|
213 | ||||
210 | re-delta-parent |
|
214 | re-delta-parent | |
211 | deltas within internal storage will choose a new base revision if needed |
|
215 | deltas within internal storage will choose a new base revision if needed | |
212 |
|
216 | |||
@@ -569,6 +573,8 b' We can restrict optimization to some rev' | |||||
569 | requirements |
|
573 | requirements | |
570 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
574 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
571 |
|
575 | |||
|
576 | optimisations: re-delta-parent | |||
|
577 | ||||
572 | re-delta-parent |
|
578 | re-delta-parent | |
573 | deltas within internal storage will choose a new base revision if needed |
|
579 | deltas within internal storage will choose a new base revision if needed | |
574 |
|
580 | |||
@@ -643,6 +649,8 b' Check we can select negatively' | |||||
643 | requirements |
|
649 | requirements | |
644 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
650 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
645 |
|
651 | |||
|
652 | optimisations: re-delta-parent | |||
|
653 | ||||
646 | re-delta-parent |
|
654 | re-delta-parent | |
647 | deltas within internal storage will choose a new base revision if needed |
|
655 | deltas within internal storage will choose a new base revision if needed | |
648 |
|
656 | |||
@@ -689,6 +697,8 b' Check that we can select changelog only' | |||||
689 | requirements |
|
697 | requirements | |
690 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
698 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
691 |
|
699 | |||
|
700 | optimisations: re-delta-parent | |||
|
701 | ||||
692 | re-delta-parent |
|
702 | re-delta-parent | |
693 | deltas within internal storage will choose a new base revision if needed |
|
703 | deltas within internal storage will choose a new base revision if needed | |
694 |
|
704 | |||
@@ -735,6 +745,8 b' Check that we can select filelog only' | |||||
735 | requirements |
|
745 | requirements | |
736 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
746 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
737 |
|
747 | |||
|
748 | optimisations: re-delta-parent | |||
|
749 | ||||
738 | re-delta-parent |
|
750 | re-delta-parent | |
739 | deltas within internal storage will choose a new base revision if needed |
|
751 | deltas within internal storage will choose a new base revision if needed | |
740 |
|
752 | |||
@@ -786,6 +798,8 b" Check you can't skip revlog clone during" | |||||
786 | preserved: dotencode, fncache, generaldelta, revlogv1, store |
|
798 | preserved: dotencode, fncache, generaldelta, revlogv1, store | |
787 | removed: sparserevlog |
|
799 | removed: sparserevlog | |
788 |
|
800 | |||
|
801 | optimisations: re-delta-parent | |||
|
802 | ||||
789 | re-delta-parent |
|
803 | re-delta-parent | |
790 | deltas within internal storage will choose a new base revision if needed |
|
804 | deltas within internal storage will choose a new base revision if needed | |
791 |
|
805 | |||
@@ -835,6 +849,8 b" Check you can't skip revlog clone during" | |||||
835 | preserved: dotencode, fncache, generaldelta, revlogv1, store |
|
849 | preserved: dotencode, fncache, generaldelta, revlogv1, store | |
836 | added: sparserevlog |
|
850 | added: sparserevlog | |
837 |
|
851 | |||
|
852 | optimisations: re-delta-parent | |||
|
853 | ||||
838 | sparserevlog |
|
854 | sparserevlog | |
839 | Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server. |
|
855 | Revlog supports delta chain with more unused data between payload. These gaps will be skipped at read time. This allows for better delta chains, making a better compression and faster exchange with server. | |
840 |
|
856 | |||
@@ -923,6 +939,8 b" store files with special filenames aren'" | |||||
923 | requirements |
|
939 | requirements | |
924 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
940 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
925 |
|
941 | |||
|
942 | optimisations: re-delta-fulladd | |||
|
943 | ||||
926 | re-delta-fulladd |
|
944 | re-delta-fulladd | |
927 | each revision will be added as new content to the internal storage; this will likely drastically slow down execution time, but some extensions might need it |
|
945 | each revision will be added as new content to the internal storage; this will likely drastically slow down execution time, but some extensions might need it | |
928 |
|
946 | |||
@@ -1135,6 +1153,8 b' repository config is taken in account' | |||||
1135 | requirements |
|
1153 | requirements | |
1136 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
1154 | preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store | |
1137 |
|
1155 | |||
|
1156 | optimisations: re-delta-all | |||
|
1157 | ||||
1138 | re-delta-all |
|
1158 | re-delta-all | |
1139 | deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time |
|
1159 | deltas within internal storage will be fully recomputed; this will likely drastically slow down execution time | |
1140 |
|
1160 |
General Comments 0
You need to be logged in to leave comments.
Login now