Show More
@@ -798,11 +798,12 def matchandpats(ctx, pats=[], opts={}, | |||||
798 | if not globbed and default == 'relpath': |
|
798 | if not globbed and default == 'relpath': | |
799 | pats = expandpats(pats or []) |
|
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 | def badfn(f, msg): |
|
801 | def badfn(f, msg): | |
804 | ctx.repo().ui.warn("%s: %s\n" % (m.rel(f), msg)) |
|
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 | if m.always(): |
|
807 | if m.always(): | |
807 | pats = [] |
|
808 | pats = [] | |
808 | return m, pats |
|
809 | return m, pats |
General Comments 0
You need to be logged in to leave comments.
Login now