mercurial/scmutil.py
changeset 25122 755d23a49170
parent 24934 5abd0a76bc8f
child 25383 5909ac39b86a
equal deleted inserted replaced
25121:df63d4843581 25122:755d23a49170
   801         pats = []
   801         pats = []
   802     if not globbed and default == 'relpath':
   802     if not globbed and default == 'relpath':
   803         pats = expandpats(pats or [])
   803         pats = expandpats(pats or [])
   804 
   804 
   805     m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
   805     m = ctx.match(pats, opts.get('include'), opts.get('exclude'),
   806                          default)
   806                          default, listsubrepos=opts.get('subrepos'))
   807     def badfn(f, msg):
   807     def badfn(f, msg):
   808         ctx.repo().ui.warn("%s: %s\n" % (m.rel(f), msg))
   808         ctx.repo().ui.warn("%s: %s\n" % (m.rel(f), msg))
   809     m.bad = badfn
   809     m.bad = badfn
   810     if m.always():
   810     if m.always():
   811         pats = []
   811         pats = []