changeset 16381:64c8ae09162e

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.
author Matt Mackall <mpm@selenic.com>
date Sun, 08 Apr 2012 12:38:26 -0500
parents 84ba30e8c790
children f542d291c4f2
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)