log: bypass file scan part of fastpath when no files
authorMatt Mackall <mpm@selenic.com>
Sun, 08 Apr 2012 12:38:26 -0500
changeset 16381 64c8ae09162e
parent 16380 84ba30e8c790
child 16382 f542d291c4f2
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.
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)