Steve Borho
|
5d527f9378
|
match: support reading pattern lists from files
|
2010-12-23 15:12:24 -06:00 |
|
Martin Geisler
|
ca9cbd61a1
|
narrowmatcher: propagate bad method
The full path is propagated to the original match object since this is
often used directly for printing an error to the user.
|
2010-09-13 13:09:09 +02:00 |
|
Martin Geisler
|
3dafdd42e0
|
narrowmatcher: fix broken rel method
|
2010-09-13 13:08:18 +02:00 |
|
Martin Geisler
|
e0e3bf4835
|
match: add narrowmatcher class
This class can be used to adapt an existing match object to a new
match object that only cares about paths within a certain
subdirectory.
|
2010-09-03 12:58:51 +02:00 |
|
Martin Geisler
|
34c8204207
|
match: accept auditor argument
This is used when normalizing filenames and patterns.
|
2010-09-03 12:58:51 +02:00 |
|
Martin Geisler
|
b9c719086c
|
match: mark error messages for translation
|
2010-08-30 17:11:51 +02:00 |
|
Matt Mackall
|
8d99be19f0
|
many, many trivial check-code fixups
|
2010-01-25 00:05:27 -06:00 |
|
Matt Mackall
|
595d66f424
|
Update license to GPLv2+
|
2010-01-19 22:20:08 -06:00 |
|
Alejandro Santos
|
ebe339890f
|
split local and stdlib module imports (eases migration issues)
|
2009-07-05 11:06:09 +02:00 |
|
timeless
|
fb33de67af
|
Generally replace "file name" with "filename" in help and comments.
|
2009-06-09 09:25:17 -04:00 |
|
Matt Mackall
|
e802acf0e9
|
match: remove match.never
Only one user, can be translated to match.exact()
|
2009-05-31 17:54:18 -05:00 |
|
Matt Mackall
|
37eaadf540
|
match: ignore return of match.bad
All users returned false, return can now be dropped
|
2009-05-31 17:54:18 -05:00 |
|
Matt Mackall
|
2940d96bce
|
match: document bad callback semantics
|
2009-05-31 17:54:18 -05:00 |
|
Matt Mackall
|
bd7c2104ff
|
match: fix _patsplit breakage with drive letters
|
2009-05-24 16:37:34 -05:00 |
|
Matt Mackall
|
f1416e098e
|
match: fold match into _match base class
|
2009-05-24 02:56:22 -05:00 |
|
Matt Mackall
|
50be99f7cb
|
match: add exact flag to match() to unify all match forms
|
2009-05-24 02:56:20 -05:00 |
|
Matt Mackall
|
e8c6616c42
|
match: redefine always and never in terms of match and exact
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
dad8161beb
|
match: fold _globprefix into _roots
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
870bafcadb
|
match: optimize escaping in _globre
- localize re.escape
- fastpath escaping of non-special characters
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
fb6d5f4ec6
|
match: remove head and tail args from _globre
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
6cec04c6af
|
match: fold _matcher into match.__init__
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
0b844e4b36
|
match: rename _matchfn to _buildmatch
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
64e6241687
|
match: optimize _patsplit
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
8ba6e48c01
|
match: tweak some names
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
cb5cd35394
|
match: simplify _matcher
- get rid of special case
- simplify anypats logic
- fold inckinds and exckinds
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
d9e0a2ed6d
|
match: split up _normalizepats
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
3d1ba9cdd7
|
match: optimize _globprefix
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
e01c72ad8b
|
match: unnest functions in _matcher
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
556e496bdb
|
match: kill unused defaults on _globre
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
85df20c19d
|
match: kill test in matchfn
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
d65d73641a
|
match: refactor matchfn generation
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
f1f37a33cf
|
match: move util match functions over
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
b287cf72fe
|
match: refactor patkind
add patkind(pat) to match
change external users
change util.patkind to _patsplit
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
89c18ad8ce
|
match: add some default args
|
2009-05-24 02:56:14 -05:00 |
|
Matt Mackall
|
532c58d931
|
match: change all users of util.matcher to match.match
|
2009-05-24 02:56:14 -05:00 |
|
Simon Heimberg
|
1b0d5c18bb
|
match: use self.exact instead of lambda
self.exact uses a set and does not need an extra copy of the files
|
2009-05-15 09:43:30 +02:00 |
|
Martin Geisler
|
cd12c66fa6
|
match: add copyright and license header
|
2009-04-26 01:57:00 +02:00 |
|
Martin Geisler
|
e2222d3c43
|
replace set-like dictionaries with real sets
Many of the dictionaries created by dict.fromkeys were emulating sets.
These can now be replaced with real sets.
|
2009-04-22 00:57:28 +02:00 |
|
Matt Mackall
|
ec9023fc53
|
dirstate.walk: speed up calling match function
|
2008-07-22 13:03:31 -05:00 |
|
Matt Mackall
|
793085a29c
|
match: cleanup match classes a bit
|
2008-05-12 11:37:08 -05:00 |
|
Matt Mackall
|
52779fb5fe
|
match: add always, never, and exact methods
|
2008-05-12 11:37:08 -05:00 |
|
Matt Mackall
|
1897262320
|
walk: begin refactoring badmatch handling
|
2008-05-12 11:37:07 -05:00 |
|
Matt Mackall
|
20f7afebf8
|
walk: introduce match objects
|
2008-05-12 11:37:07 -05:00 |
|