equal
deleted
inserted
replaced
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(). |