Mercurial > hg-stable
changeset 25469:cc3d94e5994e
mq: use the optional badfn argument when building a matcher
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 05 Jun 2015 19:35:32 -0400 |
parents | 72edd54de935 |
children | 378a8e700e02 |
files | hgext/mq.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Fri Jun 05 19:33:41 2015 -0400 +++ b/hgext/mq.py Fri Jun 05 19:35:32 2015 -0400 @@ -1138,12 +1138,11 @@ if inclsubs: substatestate = repo.dirstate['.hgsubstate'] if opts.get('include') or opts.get('exclude') or pats: - match = scmutil.match(repo[None], pats, opts) # detect missing files in pats def badfn(f, msg): if f != '.hgsubstate': # .hgsubstate is auto-created raise util.Abort('%s: %s' % (f, msg)) - match.bad = badfn + match = scmutil.match(repo[None], pats, opts, badfn=badfn) changes = repo.status(match=match) else: changes = self.checklocalchanges(repo, force=True)