Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 40855:64051af15596
upgrade: clarify "aggressivemergedelta" handling
We rename "aggressivemergedelta" argument to "forceaggressivemergedelta". The
previous argument naming could infer an absolute control on the behavior.
However, the code show we respect the config option if set.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 13 Jul 2018 11:45:15 +0200 |
parents | 8947f49daaa8 |
children | cbc3cbd9ff93 |
line wrap: on
line diff
--- a/mercurial/revlog.py Fri Jul 13 02:54:52 2018 +0200 +++ b/mercurial/revlog.py Fri Jul 13 11:45:15 2018 +0200 @@ -2287,7 +2287,7 @@ DELTAREUSEALL = {'always', 'samerevs', 'never', 'fulladd'} def clone(self, tr, destrevlog, addrevisioncb=None, - deltareuse=DELTAREUSESAMEREVS, deltabothparents=None): + deltareuse=DELTAREUSESAMEREVS, forcedeltabothparents=None): """Copy this revlog to another, possibly with format changes. The destination revlog will contain the same revisions and nodes. @@ -2321,9 +2321,9 @@ deltas will be recomputed if the delta's parent isn't a parent of the revision. - In addition to the delta policy, the ``deltabothparents`` argument - controls whether to compute deltas against both parents for merges. - By default, the current default is used. + In addition to the delta policy, the ``forcedeltabothparents`` + argument controls whether to force compute deltas against both parents + for merges. By default, the current default is used. """ if deltareuse not in self.DELTAREUSEALL: raise ValueError(_('value for deltareuse invalid: %s') % deltareuse) @@ -2346,7 +2346,7 @@ elif deltareuse == self.DELTAREUSESAMEREVS: destrevlog._lazydeltabase = False - destrevlog._deltabothparents = deltabothparents or oldamd + destrevlog._deltabothparents = forcedeltabothparents or oldamd populatecachedelta = deltareuse in (self.DELTAREUSEALWAYS, self.DELTAREUSESAMEREVS)