Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 34783:0c812885586b
context: add overlayfilectx.cmp()
Differential Revision: https://phab.mercurial-scm.org/D1058
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Fri, 13 Oct 2017 12:34:22 -0700 |
parents | 6036e6e205ca |
children | 754b5117622f |
comparison
equal
deleted
inserted
replaced
34782:f21eecc64ace | 34783:0c812885586b |
---|---|
2096 parent) | 2096 parent) |
2097 self._repo = repo | 2097 self._repo = repo |
2098 self._parent = parent | 2098 self._parent = parent |
2099 self._path = path | 2099 self._path = path |
2100 | 2100 |
2101 def cmp(self, fctx): | |
2102 return self.data() != fctx.data() | |
2103 | |
2101 def ctx(self): | 2104 def ctx(self): |
2102 return self._parent | 2105 return self._parent |
2103 | 2106 |
2104 def data(self): | 2107 def data(self): |
2105 return self._parent.data(self._path) | 2108 return self._parent.data(self._path) |