Skip to content
Snippets Groups Projects
Commit 7b11e6348810 authored by Ryan McElroy's avatar Ryan McElroy
Browse files

overlay: add support for upstream manifestlog transition

In mercurial, commit a22b3de3b65a changed some manifest lookups from using
manifest.read(sha) to using manifestlog[sha]. This change adds support for this
new kind of lookup. The old method is not removed to preserve compatibility.
parent eb01d99111b6
No related branches found
No related tags found
No related merge requests found
......@@ -314,6 +314,9 @@
return manifest.manifestdict()
return overlaymanifest(self.repo, sha)
def __getitem__(self, sha):
return self.read(sha)
class overlaychangelog(overlayrevlog):
def read(self, sha):
if isinstance(sha, int):
......@@ -334,6 +337,8 @@
self.changelog = overlaychangelog(self, handler.repo.changelog)
self.manifest = overlaymanifestlog(self, handler.repo.manifest)
# new as of mercurial 3.9+
self.manifestlog = self.manifest
# for incoming -p
self.root = handler.repo.root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment