##// END OF EJS Templates
commitablectx: move __contains__ from workingctx
Sean Farley -
r19668:9d56a335 default
parent child Browse files
Show More
@@ -862,6 +862,9 b' class commitablectx(basectx):'
862 def __nonzero__(self):
862 def __nonzero__(self):
863 return True
863 return True
864
864
865 def __contains__(self, key):
866 return self._repo.dirstate[key] not in "?r"
867
865 class workingctx(commitablectx):
868 class workingctx(commitablectx):
866 """A workingctx object makes access to data related to
869 """A workingctx object makes access to data related to
867 the current working directory convenient.
870 the current working directory convenient.
@@ -875,9 +878,6 b' class workingctx(commitablectx):'
875 changes=None):
878 changes=None):
876 super(workingctx, self).__init__(repo, text, user, date, extra, changes)
879 super(workingctx, self).__init__(repo, text, user, date, extra, changes)
877
880
878 def __contains__(self, key):
879 return self._repo.dirstate[key] not in "?r"
880
881 def _buildflagfunc(self):
881 def _buildflagfunc(self):
882 # Create a fallback function for getting file flags when the
882 # Create a fallback function for getting file flags when the
883 # filesystem doesn't support them
883 # filesystem doesn't support them
General Comments 0
You need to be logged in to leave comments. Login now