mercurial/context.py
changeset 17425 e95ec38f86b0
parent 17424 e7cfe3587ea4
child 17427 57c6c24b9bc4
equal deleted inserted replaced
17424:e7cfe3587ea4 17425:e95ec38f86b0
  1165     def cmp(self, fctx):
  1165     def cmp(self, fctx):
  1166         """compare with other file context
  1166         """compare with other file context
  1167 
  1167 
  1168         returns True if different than fctx.
  1168         returns True if different than fctx.
  1169         """
  1169         """
  1170         # fctx should be a filectx (not a wfctx)
  1170         # fctx should be a filectx (not a workingfilectx)
  1171         # invert comparison to reuse the same code path
  1171         # invert comparison to reuse the same code path
  1172         return fctx.cmp(self)
  1172         return fctx.cmp(self)
  1173 
  1173 
  1174 class memctx(object):
  1174 class memctx(object):
  1175     """Use memctx to perform in-memory commits via localrepo.commitctx().
  1175     """Use memctx to perform in-memory commits via localrepo.commitctx().