# HG changeset patch # User Phil Cohen # Date 2017-10-13 19:34:22 # Node ID 0c812885586b3d97dedb4c54d80586e2993eba42 # Parent f21eecc64ace88f2eeeaadabdd99e8829f45758f context: add overlayfilectx.cmp() Differential Revision: https://phab.mercurial-scm.org/D1058 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -2098,6 +2098,9 @@ class overlayworkingfilectx(workingfilec self._parent = parent self._path = path + def cmp(self, fctx): + return self.data() != fctx.data() + def ctx(self): return self._parent