# HG changeset patch # User Jun Wu # Date 1494620061 25200 # Node ID d356f84792955fe8e9f4afd86d6b479ce300edec # Parent 715cbf3fa24cea90baec3b9c6f4736640ae4360e overlayfilectx: provide an isbinary() method Upstream hg (e62cf13e0858) now requires isbinary() from a filecontext. hg-git's overlayfilectx needs to be updated accordingly. diff --git a/hggit/overlay.py b/hggit/overlay.py --- a/hggit/overlay.py +++ b/hggit/overlay.py @@ -198,6 +198,9 @@ blob = self.repo.handler.git.get_object(_maybehex(self.fileid)) return blob.data + def isbinary(self): + return util.binary(self.data()) + class overlaychangectx(context.changectx): def __init__(self, repo, sha): self.repo = repo