##// END OF EJS Templates
scmutil: use the optional badfn argument when building a matcher
Matt Harbison -
r25466:007a1d53 default
parent child Browse files
Show More
@@ -798,11 +798,12 b' def matchandpats(ctx, pats=[], opts={}, '
798 798 if not globbed and default == 'relpath':
799 799 pats = expandpats(pats or [])
800 800
801 m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
802 default, listsubrepos=opts.get('subrepos'))
803 801 def badfn(f, msg):
804 802 ctx.repo().ui.warn("%s: %s\n" % (m.rel(f), msg))
805 m.bad = badfn
803
804 m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
805 default, listsubrepos=opts.get('subrepos'), badfn=badfn)
806
806 807 if m.always():
807 808 pats = []
808 809 return m, pats
General Comments 0
You need to be logged in to leave comments. Login now