Mercurial > hg
changeset 21872:abae1eb695c0
log: allow revset for --follow to be lazily evaluated
It is unclear to me why evaluation was forced.
For a repository with over 700,000 commits, 'hg log -f' drops from 1.2 seconds
to 0.2 seconds.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sat, 12 Jul 2014 20:44:00 -0700 |
parents | 0feb41534421 |
children | cf599f8a2da8 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Jul 14 15:42:31 2014 -0700 +++ b/mercurial/cmdutil.py Sat Jul 12 20:44:00 2014 -0700 @@ -1719,7 +1719,7 @@ if opts.get('rev'): revs = scmutil.revrange(repo, opts['rev']) elif follow: - revs = revset.baseset(repo.revs('reverse(:.)')) + revs = repo.revs('reverse(:.)') else: revs = revset.spanset(repo) revs.reverse()