Mercurial > hg
changeset 24384:5cb459dc32d2
walkchangerevs: simplify by using match.always() method
Since "slowpath = match.anypats() or (match.files() and
opts.get('removed'))", we can simplify the condition "not slowpath and
not match.files()" to "not match.anypats() and not match.files()",
which is equivalent to "match.always()".
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Oct 2014 22:32:18 -0700 |
parents | 521cecb4a3f1 |
children | 885a573fa619 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Oct 28 22:43:59 2014 -0700 +++ b/mercurial/cmdutil.py Tue Oct 28 22:32:18 2014 -0700 @@ -1698,7 +1698,7 @@ # wanted: a cache of filenames that were changed (ctx.files()) and that # match the file filtering conditions. - if not slowpath and not match.files(): + if match.always(): # No files, no patterns. Display all revs. wanted = revs