mercurial/util.py
changeset 4188 dd0d9bd91e0a
parent 4187 9814d600011e
child 4190 e8ee8fdeddb1
equal deleted inserted replaced
4187:9814d600011e 4188:dd0d9bd91e0a
   507     if exc:
   507     if exc:
   508         dummy, exckinds, dummy = normalizepats(exc, 'glob')
   508         dummy, exckinds, dummy = normalizepats(exc, 'glob')
   509         excmatch = matchfn(exckinds, '(?:/|$)')
   509         excmatch = matchfn(exckinds, '(?:/|$)')
   510 
   510 
   511     return (roots,
   511     return (roots,
   512             lambda fn: (incmatch(fn) and not excmatch(fn) and
   512             lambda fn: (incmatch(fn) and not excmatch(fn) and patmatch(fn)),
   513                         (fn.endswith('/') or patmatch(fn))),
       
   514             (inc or exc or anypats) and True)
   513             (inc or exc or anypats) and True)
   515 
   514 
   516 def system(cmd, environ={}, cwd=None, onerr=None, errprefix=None):
   515 def system(cmd, environ={}, cwd=None, onerr=None, errprefix=None):
   517     '''enhanced shell command execution.
   516     '''enhanced shell command execution.
   518     run with environment maybe modified, maybe in different dir.
   517     run with environment maybe modified, maybe in different dir.