Mercurial > public > mercurial-scm > hg-stable
diff mercurial/store.py @ 50526:3473d18c029a
store: introduce a main_file_path method for revlog
This help code that need to point revlog to an index file. This is put to use
in the upgrade code.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 15 May 2023 09:02:09 +0200 |
parents | 60e613f6a229 |
children | 816e8bc6e066 |
line wrap: on
line diff
--- a/mercurial/store.py Mon May 15 09:01:53 2023 +0200 +++ b/mercurial/store.py Mon May 15 09:02:09 2023 +0200 @@ -524,6 +524,10 @@ self.target_id = target_id self.is_revlog_main = is_revlog_main + def main_file_path(self): + """unencoded path of the main revlog file""" + return self.unencoded_path + @attr.s(slots=True) class StoreFile: