##// END OF EJS Templates
context: reuse filecontext.cmp in workingfilecontext.cmp...
Nicolas Dumazet -
r11703:55a2af02 default
parent child Browse files
Show More
@@ -940,7 +940,9 b' class workingfilectx(filectx):'
940
940
941 returns True if different than fctx.
941 returns True if different than fctx.
942 """
942 """
943 return self._repo.wread(self._path) != fctx.data()
943 # fctx should be a filectx (not a wfctx)
944 # invert comparison to reuse the same code path
945 return fctx.cmp(self)
944
946
945 class memctx(object):
947 class memctx(object):
946 """Use memctx to perform in-memory commits via localrepo.commitctx().
948 """Use memctx to perform in-memory commits via localrepo.commitctx().
General Comments 0
You need to be logged in to leave comments. Login now