# HG changeset patch # User Matt Harbison # Date 1433547332 14400 # Node ID cc3d94e5994e524c121fcb4a62fba95366cd8514 # Parent 72edd54de935d0515729c92608597e774d96ce37 mq: use the optional badfn argument when building a matcher diff -r 72edd54de935 -r cc3d94e5994e hgext/mq.py --- 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)