--- a/mercurial/scmutil.py Fri Jun 05 19:01:04 2015 -0400
+++ b/mercurial/scmutil.py Fri Jun 05 19:07:54 2015 -0400
@@ -798,11 +798,12 @@
if not globbed and default == 'relpath':
pats = expandpats(pats or [])
- m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
- default, listsubrepos=opts.get('subrepos'))
def badfn(f, msg):
ctx.repo().ui.warn("%s: %s\n" % (m.rel(f), msg))
- m.bad = badfn
+
+ m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
+ default, listsubrepos=opts.get('subrepos'), badfn=badfn)
+
if m.always():
pats = []
return m, pats