##// END OF EJS Templates
Optimize return value of util._matcher for common command line case...
Alexis S. L. Carvalho -
r4198:9e312101 default
parent child Browse files
Show More
@@ -418,6 +418,10 b' def _matcher(canonroot, cwd, names, inc,'
418 - a bool indicating if any patterns were passed in
418 - a bool indicating if any patterns were passed in
419 """
419 """
420
420
421 # a common case: no patterns at all
422 if not names and not inc and not exc:
423 return [], always, False
424
421 def contains_glob(name):
425 def contains_glob(name):
422 for c in name:
426 for c in name:
423 if c in _globchars: return True
427 if c in _globchars: return True
General Comments 0
You need to be logged in to leave comments. Login now