mq: reduce matcher abuse
The match function should match only the files we're interested in.
--- a/hgext/mq.py Wed Jun 13 19:15:58 2007 -0300
+++ b/hgext/mq.py Wed Jun 13 21:39:45 2007 -0300
@@ -1057,9 +1057,11 @@
aaa = aa[:]
if opts.get('short'):
filelist = mm + aa + dd
+ match = dict.fromkeys(filelist).__contains__
else:
filelist = None
- m, a, r, d, u = repo.status(files=filelist)[:5]
+ match = util.always
+ m, a, r, d, u = repo.status(files=filelist, match=match)[:5]
# we might end up with files that were added between tip and
# the dirstate parent, but then changed in the local dirstate.