Show More
@@ -637,9 +637,6 b" coreconfigitem('extdata', '.*'," | |||
|
637 | 637 | default=None, |
|
638 | 638 | generic=True, |
|
639 | 639 | ) |
|
640 | coreconfigitem('format', 'aggressivemergedeltas', | |
|
641 | default=True, | |
|
642 | ) | |
|
643 | 640 | coreconfigitem('format', 'chunkcachesize', |
|
644 | 641 | default=None, |
|
645 | 642 | ) |
@@ -930,6 +927,10 b" coreconfigitem('progress', 'width'," | |||
|
930 | 927 | coreconfigitem('push', 'pushvars.server', |
|
931 | 928 | default=False, |
|
932 | 929 | ) |
|
930 | coreconfigitem('revlog', 'optimize-delta-parent-choice', | |
|
931 | default=True, | |
|
932 | # formely an experimental option: format.aggressivemergedeltas | |
|
933 | ) | |
|
933 | 934 | coreconfigitem('server', 'bookmarks-pushkey-compat', |
|
934 | 935 | default=True, |
|
935 | 936 | ) |
@@ -1773,6 +1773,20 b' have a definite end point.' | |||
|
1773 | 1773 | |
|
1774 | 1774 | Alias definitions for revsets. See :hg:`help revsets` for details. |
|
1775 | 1775 | |
|
1776 | ``revlog`` | |
|
1777 | ---------- | |
|
1778 | ||
|
1779 | Control the strategy Mercurial uses internally to store history. Options in this | |
|
1780 | category impact performance and repository size. | |
|
1781 | ||
|
1782 | ``optimize-delta-parent-choice`` | |
|
1783 | When storing a merge revision, both parents will be equally considered as | |
|
1784 | a possible delta base. This results in better delta selection and improved | |
|
1785 | revlog compression. This option is enabled by default. | |
|
1786 | ||
|
1787 | Turning this option off can result in large increase of repository size for | |
|
1788 | repository with many merges. | |
|
1789 | ||
|
1776 | 1790 | ``server`` |
|
1777 | 1791 | ---------- |
|
1778 | 1792 |
@@ -668,9 +668,8 b' class localrepository(object):' | |||
|
668 | 668 | manifestcachesize = self.ui.configint('format', 'manifestcachesize') |
|
669 | 669 | if manifestcachesize is not None: |
|
670 | 670 | self.svfs.options['manifestcachesize'] = manifestcachesize |
|
671 | # experimental config: format.aggressivemergedeltas | |
|
672 | deltabothparents = self.ui.configbool('format', | |
|
673 | 'aggressivemergedeltas') | |
|
671 | deltabothparents = self.ui.configbool('revlog', | |
|
672 | 'optimize-delta-parent-choice') | |
|
674 | 673 | self.svfs.options['deltabothparents'] = deltabothparents |
|
675 | 674 | self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui) |
|
676 | 675 | chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan') |
@@ -118,7 +118,7 b' delta coming from the server base delta ' | |||
|
118 | 118 | 2 1 2 0 p1 57 135 161 1.19259 218 57 0.35404 |
|
119 | 119 | 3 1 2 0 p1 57 135 161 1.19259 275 114 0.70807 |
|
120 | 120 | |
|
121 | Test format.aggressivemergedeltas | |
|
121 | Test revlog.optimize-delta-parent-choice | |
|
122 | 122 | |
|
123 | 123 | $ hg init --config format.generaldelta=1 aggressive |
|
124 | 124 | $ cd aggressive |
@@ -146,7 +146,7 b' Test format.aggressivemergedeltas' | |||
|
146 | 146 | - Verify aggressive merge uses p2 (commit 0) as delta parent |
|
147 | 147 | $ hg up -q -C 1 |
|
148 | 148 | $ hg merge -q 0 |
|
149 |
$ hg commit -q -m merge --config |
|
|
149 | $ hg commit -q -m merge --config revlog.optimize-delta-parent-choice=yes | |
|
150 | 150 | $ hg debugdeltachain -m |
|
151 | 151 | rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio |
|
152 | 152 | 0 1 1 -1 base 59 215 59 0.27442 59 0 0.00000 |
General Comments 0
You need to be logged in to leave comments.
Login now