Siddharth Agarwal  committed abae1eb

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.

  • Participants
  • Parent commits 0feb415
  • Branches default

Comments (0)

Files changed (1)

File mercurial/

     if opts.get('rev'):
         revs = scmutil.revrange(repo, opts['rev'])
     elif follow:
-        revs = revset.baseset(repo.revs('reverse(:.)'))
+        revs = repo.revs('reverse(:.)')
         revs = revset.spanset(repo)