diff -r e1ee6910f6bc -r 3ea3767c23a4 mercurial/store.py --- 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 )