##// END OF EJS Templates
committablectx: move __contains__ into workingctx...
Sean Farley -
r21845:04f5b5e3 default
parent child Browse files
Show More
@@ -976,9 +976,6 b' class committablectx(basectx):'
976 def __nonzero__(self):
976 def __nonzero__(self):
977 return True
977 return True
978
978
979 def __contains__(self, key):
980 return self._repo.dirstate[key] not in "?r"
981
982 def _buildflagfunc(self):
979 def _buildflagfunc(self):
983 # Create a fallback function for getting file flags when the
980 # Create a fallback function for getting file flags when the
984 # filesystem doesn't support them
981 # filesystem doesn't support them
@@ -1179,6 +1176,9 b' class workingctx(committablectx):'
1179 if d[f] != 'r':
1176 if d[f] != 'r':
1180 yield f
1177 yield f
1181
1178
1179 def __contains__(self, key):
1180 return self._repo.dirstate[key] not in "?r"
1181
1182 @propertycache
1182 @propertycache
1183 def _parents(self):
1183 def _parents(self):
1184 p = self._repo.dirstate.parents()
1184 p = self._repo.dirstate.parents()
General Comments 0
You need to be logged in to leave comments. Login now