Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 8680:b6511055d37b
match: ignore return of match.bad
All users returned false, return can now be dropped
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 31 May 2009 17:54:18 -0500 |
parents | 573734e7e6d0 |
children | 0550dfe4fca1 |
comparison
equal
deleted
inserted
replaced
8679:32537b12e091 | 8680:b6511055d37b |
---|---|
254 pats = expandpats(pats or []) | 254 pats = expandpats(pats or []) |
255 m = _match.match(repo.root, repo.getcwd(), pats, | 255 m = _match.match(repo.root, repo.getcwd(), pats, |
256 opts.get('include'), opts.get('exclude'), default) | 256 opts.get('include'), opts.get('exclude'), default) |
257 def badfn(f, msg): | 257 def badfn(f, msg): |
258 repo.ui.warn("%s: %s\n" % (m.rel(f), msg)) | 258 repo.ui.warn("%s: %s\n" % (m.rel(f), msg)) |
259 return False | |
260 m.bad = badfn | 259 m.bad = badfn |
261 return m | 260 return m |
262 | 261 |
263 def matchall(repo): | 262 def matchall(repo): |
264 return _match.always(repo.root, repo.getcwd()) | 263 return _match.always(repo.root, repo.getcwd()) |