comparison mercurial/cmdutil.py @ 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 71dcce391a44
comparison
equal deleted inserted replaced
16380:84ba30e8c790 16381:64c8ae09162e
1004 if not slowpath and not match.files(): 1004 if not slowpath and not match.files():
1005 # No files, no patterns. Display all revs. 1005 # No files, no patterns. Display all revs.
1006 wanted = set(revs) 1006 wanted = set(revs)
1007 copies = [] 1007 copies = []
1008 1008
1009 if not slowpath: 1009 if not slowpath and match.files():
1010 # We only have to read through the filelog to find wanted revisions 1010 # We only have to read through the filelog to find wanted revisions
1011 1011
1012 minrev, maxrev = min(revs), max(revs) 1012 minrev, maxrev = min(revs), max(revs)
1013 def filerevgen(filelog, last): 1013 def filerevgen(filelog, last):
1014 """ 1014 """