# HG changeset patch # User Martin von Zweigbergk # Date 1432243224 25200 # Node ID 1b1eaf1885dfbfad68377a4eeee55c15e6046534 # Parent 61b3529e23778f542044d24bb1ccd5688516a7f0 walkchangerevs: simplify with an 'elif' Since 'match.files()' is interchangeable with 'not match.files()', we can simplify with an 'elif' follwoing the 'if match.always()'. diff -r 61b3529e2377 -r 1b1eaf1885df mercurial/cmdutil.py --- a/mercurial/cmdutil.py Tue May 26 07:44:37 2015 -0500 +++ b/mercurial/cmdutil.py Thu May 21 14:20:24 2015 -0700 @@ -1767,8 +1767,7 @@ if match.always(): # No files, no patterns. Display all revs. wanted = revs - - if not slowpath and match.files(): + elif not slowpath: # We only have to read through the filelog to find wanted revisions try: