Mercurial > hg-stable
comparison mercurial/match.py @ 16182:bd12ef347680
match: consider filesets as "anypats"
Matt suggested this on IRC, I do not think the choice is obvious, but this one
makes things simpler because while filesets are turned into a list of files
into the match objects, it would more be difficult to tell invalid files passed
in pats from those expanded from filesets.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 26 Feb 2012 17:10:55 +0100 |
parents | d5f774668102 |
children | 9a21fc2c7d32 c17ce7cd5090 |
comparison
equal
deleted
inserted
replaced
16181:1fd352aa08fc | 16182:bd12ef347680 |
---|---|
331 r.append('.') | 331 r.append('.') |
332 return r | 332 return r |
333 | 333 |
334 def _anypats(patterns): | 334 def _anypats(patterns): |
335 for kind, name in patterns: | 335 for kind, name in patterns: |
336 if kind in ('glob', 're', 'relglob', 'relre'): | 336 if kind in ('glob', 're', 'relglob', 'relre', 'set'): |
337 return True | 337 return True |