# HG changeset patch # User Alexis S. L. Carvalho # Date 1181781585 10800 # Node ID eb3b7dd1e158b5a5f99df2ffc53e13de87a10016 # Parent b36d8cd1d8ff9425eef269c7a219433366dbf1ef mq: reduce matcher abuse The match function should match only the files we're interested in. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1057,9 +1057,11 @@ class queue: 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.