Mercurial > public > mercurial-scm > hg
diff mercurial/filelog.py @ 47147:8a1a51d31e85
filelog: drop `indexfile` from `filelog`
Since `filelog` objects are not revlog (no really, they are not?) we drop the
revlog specific attribute. We need to directly access the underlying revlog in a
couple of place that already assume that we have a revlog here.
This is motivated by future change to that revlog attribute.
Differential Revision: https://phab.mercurial-scm.org/D10573
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:22:06 +0200 |
parents | 64cd1496bb70 |
children | a07d5cb03a85 |
line wrap: on
line diff
--- a/mercurial/filelog.py Mon May 03 12:21:56 2021 +0200 +++ b/mercurial/filelog.py Mon May 03 12:22:06 2021 +0200 @@ -228,18 +228,6 @@ storedsize=storedsize, ) - # TODO these aren't part of the interface and aren't internal methods. - # Callers should be fixed to not use them. - - # Used by bundlefilelog, unionfilelog. - @property - def indexfile(self): - return self._revlog.indexfile - - @indexfile.setter - def indexfile(self, value): - self._revlog.indexfile = value - # Used by repo upgrade. def clone(self, tr, destrevlog, **kwargs): if not isinstance(destrevlog, filelog):