# HG changeset patch # User Matt Mackall # Date 1333906706 18000 # Node ID 64c8ae09162e8a40ca6a38adec41b876d3a2c6b7 # Parent 84ba30e8c790c818d2f9a990c38f021e71c4504e log: bypass file scan part of fastpath when no files This avoids loading dirstate parents, looking up p1 rev, and loading p1 manifest to match against an empty matcher. diff -r 84ba30e8c790 -r 64c8ae09162e mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sun Apr 08 12:38:24 2012 -0500 +++ b/mercurial/cmdutil.py Sun Apr 08 12:38:26 2012 -0500 @@ -1006,7 +1006,7 @@ wanted = set(revs) copies = [] - if not slowpath: + if not slowpath and match.files(): # We only have to read through the filelog to find wanted revisions minrev, maxrev = min(revs), max(revs)