Mercurial > hg
diff mercurial/unionrepo.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 | bc7d465ea11e |
children | a07d5cb03a85 |
line wrap: on
line diff
--- a/mercurial/unionrepo.py Mon May 03 12:21:56 2021 +0200 +++ b/mercurial/unionrepo.py Mon May 03 12:22:06 2021 +0200 @@ -183,7 +183,7 @@ filelog.filelog.__init__(self, opener, path) filelog2 = filelog.filelog(opener2, path) self._revlog = unionrevlog( - opener, self.indexfile, filelog2._revlog, linkmapper + opener, self._revlog.indexfile, filelog2._revlog, linkmapper ) self._repo = repo self.repotiprev = self._revlog.repotiprev