# HG changeset patch # User Pierre-Yves David # Date 1620037145 -7200 # Node ID 1352cc14cce22b1494316c33738dd3153f1ba428 # Parent 1b33e38d4b6d6b6c6e58b15e369d31a4623f2de8 revlog: explicitely pass the "indexfile" parameter Most of this was already done when introducing the `target` parameter, but some remained. Having "indexfile" passed explicitely will help us to change the way we address a revlog later in the stack. With the introduction of more generic `docket`, the entry point will not necessarly be `xxx.i` file, and the actual index files will have a variable name. Differential Revision: https://phab.mercurial-scm.org/D10561 diff -r 1b33e38d4b6d -r 1352cc14cce2 hgext/remotefilelog/contentstore.py --- a/hgext/remotefilelog/contentstore.py Mon May 03 12:18:58 2021 +0200 +++ b/hgext/remotefilelog/contentstore.py Mon May 03 12:19:05 2021 +0200 @@ -281,7 +281,7 @@ self._store = repo.store self._svfs = repo.svfs self._revlogs = dict() - self._cl = revlog.revlog(self._svfs, b'00changelog.i') + self._cl = revlog.revlog(self._svfs, indexfile=b'00changelog.i') self._repackstartlinkrev = 0 def get(self, name, node): @@ -344,7 +344,7 @@ revlogname = b'00manifesttree.i' if name != b'': revlogname = b'meta/%s/00manifest.i' % name - rl = revlog.revlog(self._svfs, revlogname) + rl = revlog.revlog(self._svfs, indexfile=revlogname) self._revlogs[name] = rl return rl @@ -365,7 +365,7 @@ if options and options.get(constants.OPTION_PACKSONLY): return treename = b'' - rl = revlog.revlog(self._svfs, b'00manifesttree.i') + rl = revlog.revlog(self._svfs, indexfile=b'00manifesttree.i') startlinkrev = self._repackstartlinkrev endlinkrev = self._repackendlinkrev for rev in pycompat.xrange(len(rl) - 1, -1, -1): @@ -384,7 +384,7 @@ treename = path[5 : -len(b'/00manifest.i')] - rl = revlog.revlog(self._svfs, path) + rl = revlog.revlog(self._svfs, indexfile=path) for rev in pycompat.xrange(len(rl) - 1, -1, -1): linkrev = rl.linkrev(rev) if linkrev < startlinkrev: