equal
deleted
inserted
replaced
3 # Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others |
3 # Copyright 2008, 2009 Matt Mackall <mpm@selenic.com> and others |
4 # |
4 # |
5 # This software may be used and distributed according to the terms of the |
5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2, incorporated herein by reference. |
6 # GNU General Public License version 2, incorporated herein by reference. |
7 |
7 |
8 import util, re |
8 import re |
|
9 import util |
9 |
10 |
10 class match(object): |
11 class match(object): |
11 def __init__(self, root, cwd, patterns, include=[], exclude=[], |
12 def __init__(self, root, cwd, patterns, include=[], exclude=[], |
12 default='glob', exact=False): |
13 default='glob', exact=False): |
13 """build an object to match a set of file patterns |
14 """build an object to match a set of file patterns |