Commit 5f9122431e1 by Georges Racinet

overlaychangectx: adding attribute expected in future hg 5.3

This `_maybe_filtered` attribute has been introduced in Mercurial
revision 8a37203ab1d5, and is henceforth expected by some callers.

Adding it inconditionnally should not harm on previous versions: it
would simply not get used.
parent 3de074bf800
Pipeline #1943 canceled with stage
......@@ -212,7 +212,7 @@ class overlayfilectx(object):
class overlaychangectx(context.changectx):
def __init__(self, repo, sha):
def __init__(self, repo, sha, maybe_filtered=True):
# Can't store this in self._repo because the base class uses that field
self._hgrepo = repo
if not isinstance(sha, basestring):
......@@ -220,6 +220,7 @@ class overlaychangectx(context.changectx):
self.commit = repo.handler.git.get_object(_maybehex(sha))
self._overlay = getattr(repo, 'gitoverlay', repo)
self._rev = self._overlay.rev(bin(
self._maybe_filtered = maybe_filtered
def __getattr__(self, name):
# Since hg 4.6, context.changectx doesn't define self._repo,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment