Mercurial > public > mercurial-scm > hg
comparison mercurial/upgrade_utils/actions.py @ 46218:3f92a9bb80f0
engine: prevent multiple checking of re-delta-multibase
The _perform_clone function is called for each revlog cloned, hence we should
prevent this function call overhead.
Differential Revision: https://phab.mercurial-scm.org/D9669
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 30 Dec 2020 16:39:35 +0530 |
parents | 82f3ee1a505f |
children | 1fcab88ab85c |
comparison
equal
deleted
inserted
replaced
46217:02df91e895bd | 46218:3f92a9bb80f0 |
---|---|
656 elif b're-delta-multibase' in self._upgrade_actions_names: | 656 elif b're-delta-multibase' in self._upgrade_actions_names: |
657 self.delta_reuse_mode = revlog.revlog.DELTAREUSESAMEREVS | 657 self.delta_reuse_mode = revlog.revlog.DELTAREUSESAMEREVS |
658 elif b're-delta-fulladd' in self._upgrade_actions_names: | 658 elif b're-delta-fulladd' in self._upgrade_actions_names: |
659 self.delta_reuse_mode = revlog.revlog.DELTAREUSEFULLADD | 659 self.delta_reuse_mode = revlog.revlog.DELTAREUSEFULLADD |
660 | 660 |
661 # should this operation force re-delta of both parents | |
662 self.force_re_delta_both_parents = ( | |
663 b're-delta-multibase' in self._upgrade_actions_names | |
664 ) | |
665 | |
661 def _write_labeled(self, l, label): | 666 def _write_labeled(self, l, label): |
662 """ | 667 """ |
663 Utility function to aid writing of a list under one label | 668 Utility function to aid writing of a list under one label |
664 """ | 669 """ |
665 first = True | 670 first = True |