Mercurial > hg-stable
changeset 25276:c436ba9d6ac0
manifest: use match.prefix() instead of 'not match.anypats()'
It seems clearer to check for what it is than what it isn't.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 19 May 2015 11:16:20 -0700 |
parents | d94e403b5237 |
children | 0f2dcbccf9c9 |
files | mercurial/manifest.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/manifest.py Tue May 19 10:40:40 2015 -0700 +++ b/mercurial/manifest.py Tue May 19 11:16:20 2015 -0700 @@ -219,7 +219,7 @@ files instead of over manifest files.''' files = match.files() return (len(files) < 100 and (match.isexact() or - (not match.anypats() and all(fn in self for fn in files)))) + (match.prefix() and all(fn in self for fn in files)))) def walk(self, match): '''Generates matching file names.