equal
deleted
inserted
replaced
303 if badfn is not None: |
303 if badfn is not None: |
304 self.bad = badfn |
304 self.bad = badfn |
305 |
305 |
306 def __call__(self, fn): |
306 def __call__(self, fn): |
307 return self.matchfn(fn) |
307 return self.matchfn(fn) |
308 def __iter__(self): |
|
309 for f in self._files: |
|
310 yield f |
|
311 # Callbacks related to how the matcher is used by dirstate.walk. |
308 # Callbacks related to how the matcher is used by dirstate.walk. |
312 # Subscribers to these events must monkeypatch the matcher object. |
309 # Subscribers to these events must monkeypatch the matcher object. |
313 def bad(self, f, msg): |
310 def bad(self, f, msg): |
314 '''Callback from dirstate.walk for each explicit file that can't be |
311 '''Callback from dirstate.walk for each explicit file that can't be |
315 found/accessed, with an error message.''' |
312 found/accessed, with an error message.''' |