Mercurial > hg-git
diff hggit/overlay.py @ 1130:80664524802b
compat: add compatibility for 4.6 mercurial.utils
author | Sean Farley <sean@farley.io> |
---|---|
date | Thu, 24 May 2018 11:26:15 +0200 |
parents | bd1a01f98154 |
children | 9cbf81bb5e27 |
line wrap: on
line diff
--- a/hggit/overlay.py Thu May 24 09:50:04 2018 +0200 +++ b/hggit/overlay.py Thu May 24 11:26:15 2018 +0200 @@ -14,6 +14,7 @@ ) from mercurial.node import bin, hex, nullid +import compat def _maybehex(n): if len(n) == 20: @@ -207,7 +208,7 @@ return blob.data def isbinary(self): - return util.binary(self.data()) + return compat.binary(self.data()) class overlaychangectx(context.changectx):