--- a/mercurial/util.py Tue Aug 23 21:57:22 2005 -0700
+++ b/mercurial/util.py Wed Aug 24 12:39:10 2005 -0700
@@ -156,11 +156,13 @@
if exc:
excmatch = matchfn(map(patkind, exc), '(?:/|$)')
- return roots, lambda fn: (incmatch(fn) and not excmatch(fn) and
- (fn.endswith('/') or
- (not pats and not files) or
- (pats and patmatch(fn)) or
- (files and filematch(fn))))
+ return (roots,
+ lambda fn: (incmatch(fn) and not excmatch(fn) and
+ (fn.endswith('/') or
+ (not pats and not files) or
+ (pats and patmatch(fn)) or
+ (files and filematch(fn)))),
+ (inc or exc or (pats and pats != [('glob', '**')])) and True)
def system(cmd, errprefix=None):
"""execute a shell command that must succeed"""