Skip to content
Snippets Groups Projects
Commit 4538981d authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

overlaychangelog: return tuples for read()

I have no idea why this used to return a changectx -- changelog.read() in core
has always returned a tuple.
parent eba7dcfa
No related branches found
No related tags found
No related merge requests found
......@@ -191,6 +191,10 @@
except ImportError:
return 1
def totuple(self):
return (self.commit.tree, self.user(), self.date(), self.files(),
self.description(), self.extra())
class overlayrevlog(object):
def __init__(self, repo, base):
self.repo = repo
......@@ -261,8 +265,10 @@
sha = self.node(sha)
if sha == nullid:
return (nullid, "", (0, 0), [], "", {})
return overlaychangectx(self.repo, sha)
try:
return self.base.read(sha)
except LookupError:
return overlaychangectx(self.repo, sha).totuple()
class overlayrepo(object):
def __init__(self, handler, commits, refs):
......
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