changeset 50628:3ea3767c23a4

store: do not drop the final `/` when creating manifestlog instance This bug, inherited from the upgrade code leads to the acces/creation of broken revlog with name `DIRECTORY00manifest.i` instead of `DIRECTORY/00manifest.i` We fix it in its own changeset to preserve the "pure code movement" aspect of the previous changesets.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 29 May 2023 13:28:33 +0200
parents e1ee6910f6bc
children 309cbd8400ae
files mercurial/store.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/store.py	Sat May 27 04:01:17 2023 +0200
+++ b/mercurial/store.py	Mon May 29 13:28:33 2023 +0200
@@ -554,7 +554,7 @@
         if self.is_changelog:
             return changelog.changelog(repo.svfs)
         elif self.is_manifestlog:
-            mandir = self.target_id.rstrip(b'/')
+            mandir = self.target_id
             return manifest.manifestrevlog(
                 repo.nodeconstants, repo.svfs, tree=mandir
             )