equal
deleted
inserted
replaced
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. |