comparison mercurial/match.py @ 32543:cf7c88986e9f

match: define exactmatcher.matchfn statically This should eliminate the reference cycle, self.matchfn -> self.exact -> self.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 28 May 2017 23:54:31 +0900
parents 37ea47a50875
children e7aa11f3abcd
comparison
equal deleted inserted replaced
32542:37ea47a50875 32543:cf7c88986e9f
413 413
414 if isinstance(files, list): 414 if isinstance(files, list):
415 self._files = files 415 self._files = files
416 else: 416 else:
417 self._files = list(files) 417 self._files = list(files)
418 self.matchfn = self.exact 418
419 matchfn = basematcher.exact
419 420
420 @propertycache 421 @propertycache
421 def _dirs(self): 422 def _dirs(self):
422 return set(util.dirs(self._fileset)) | {'.'} 423 return set(util.dirs(self._fileset)) | {'.'}
423 424