# HG changeset patch # User Phil Cohen # Date 1507923262 25200 # Node ID 0c812885586b3d97dedb4c54d80586e2993eba42 # Parent f21eecc64ace88f2eeeaadabdd99e8829f45758f context: add overlayfilectx.cmp() Differential Revision: https://phab.mercurial-scm.org/D1058 diff -r f21eecc64ace -r 0c812885586b mercurial/context.py --- a/mercurial/context.py Mon Oct 16 13:10:55 2017 -0700 +++ b/mercurial/context.py Fri Oct 13 12:34:22 2017 -0700 @@ -2098,6 +2098,9 @@ self._parent = parent self._path = path + def cmp(self, fctx): + return self.data() != fctx.data() + def ctx(self): return self._parent