Mercurial > public > mercurial-scm > hg-stable
diff mercurial/filelog.py @ 47164:8d3c2f9d4af7
revlog: use a "radix" to address revlog
Instead of pointing to the index directly and to derive the other file from
that, we directly provide the radix and let the revlog determine the associated
file path internally. This is more robust and will give us more flexibility for
picking this file name in the future.
Differential Revision: https://phab.mercurial-scm.org/D10576
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:22:36 +0200 |
parents | a07d5cb03a85 |
children | 96ee8ca99f5a |
line wrap: on
line diff
--- a/mercurial/filelog.py Mon May 03 12:22:26 2021 +0200 +++ b/mercurial/filelog.py Mon May 03 12:22:36 2021 +0200 @@ -30,7 +30,7 @@ opener, # XXX should use the unencoded path target=(revlog_constants.KIND_FILELOG, path), - indexfile=b'/'.join((b'data', path + b'.i')), + radix=b'/'.join((b'data', path)), censorable=True, ) # Full name of the user visible file, relative to the repository root.