Mercurial > public > mercurial-scm > hg-stable
diff tests/simplestorerepo.py @ 39262:3682b49e0213
repository: remove candelta() from ifileindex
candelta() was previously called by changegroup code. With delta
generation moved to the storage API, there are no more external
consumers of this method and it can be removed from the storage
interface.
Differential Revision: https://phab.mercurial-scm.org/D4236
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 09 Aug 2018 19:27:54 -0700 |
parents | 0a5b20c107a6 |
children | 41aa5dced975 |
line wrap: on
line diff
--- a/tests/simplestorerepo.py Thu Aug 09 19:30:36 2018 -0700 +++ b/tests/simplestorerepo.py Thu Aug 09 19:27:54 2018 -0700 @@ -241,7 +241,7 @@ p1node = self.parents(self.node(rev))[0] return self.rev(p1node) - def candelta(self, baserev, rev): + def _candelta(self, baserev, rev): validaterev(baserev) validaterev(rev) @@ -527,7 +527,7 @@ # for choosing a delta parent. baserev = self.deltaparent(rev) - if baserev != nullrev and not self.candelta(baserev, rev): + if baserev != nullrev and not self._candelta(baserev, rev): baserev = nullrev revision = None