Mercurial > hg
comparison mercurial/match.py @ 6578:f242d3684f83
walk: begin refactoring badmatch handling
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | 69f3e9ac7c56 |
children | 7fe4610cf920 |
comparison
equal
deleted
inserted
replaced
6577:569761919450 | 6578:f242d3684f83 |
---|---|
5 self._patterns = patterns | 5 self._patterns = patterns |
6 self._root = root | 6 self._root = root |
7 self._cwd = cwd | 7 self._cwd = cwd |
8 self._include = include | 8 self._include = include |
9 self._exclude = exclude | 9 self._exclude = exclude |
10 f, mf, ap = util.matcher(self._root, self._cwd, self._patterns, | 10 f, mf, ap = util.matcher(root, cwd, patterns, include, exclude, |
11 self._include, self._exclude, self.src(), | 11 self.src(), default) |
12 default) | |
13 self._files = f | 12 self._files = f |
14 self._fmap = dict.fromkeys(f) | 13 self._fmap = dict.fromkeys(f) |
15 self._matchfn = mf | 14 self._matchfn = mf |
16 self._anypats = ap | 15 self._anypats = ap |
17 def src(self): | 16 def src(self): |