comparison mercurial/match.py @ 42195:7edff8dd46a7

match: remove unused match.__iter__ implementation (API) Differential Revision: https://phab.mercurial-scm.org/D6305
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 23 Apr 2019 08:39:26 -0700
parents fd384911f51b
children c7652f7440d9
comparison
equal deleted inserted replaced
42194:0da689a60163 42195:7edff8dd46a7
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.'''