##// END OF EJS Templates
localrepo: factor out _manifestmatch logic for workingctx
Sean Farley -
r21468:870ddcf2 default
parent child Browse files
Show More
@@ -1228,6 +1228,23 b' class workingctx(committablectx):'
1228 pass
1228 pass
1229 return modified, fixup
1229 return modified, fixup
1230
1230
1231 def _manifestmatches(self, match, s):
1232 """Slow path for workingctx
1233
1234 The fast path is when we compare the working directory to its parent
1235 which means this function is comparing with a non-parent; therefore we
1236 need to build a manifest and return what matches.
1237 """
1238 mf = self._repo['.']._manifestmatches(match, s)
1239 modified, added, removed = s[0:3]
1240 for f in modified + added:
1241 mf[f] = None
1242 mf.set(f, self.flags(f))
1243 for f in removed:
1244 if f in mf:
1245 del mf[f]
1246 return mf
1247
1231 def _dirstatestatus(self, match=None, ignored=False, clean=False,
1248 def _dirstatestatus(self, match=None, ignored=False, clean=False,
1232 unknown=False):
1249 unknown=False):
1233 '''Gets the status from the dirstate -- internal use only.'''
1250 '''Gets the status from the dirstate -- internal use only.'''
General Comments 0
You need to be logged in to leave comments. Login now