author | Yuya Nishihara <yuya@tcha.org> |
Fri, 06 Feb 2015 00:22:20 +0900 | |
changeset 24063 | c98fa0ca4678 |
parent 24062 | f576addb5b77 |
child 24064 | c260887cdbcd |
--- a/mercurial/cmdutil.py Fri Feb 06 00:15:35 2015 +0900 +++ b/mercurial/cmdutil.py Fri Feb 06 00:22:20 2015 +0900 @@ -1473,14 +1473,7 @@ function on each context in the window in forward order.''' follow = opts.get('follow') or opts.get('follow_first') - - if opts.get('rev'): - revs = scmutil.revrange(repo, opts.get('rev')) - elif follow: - revs = repo.revs('reverse(:.)') - else: - revs = revset.spanset(repo) - revs.reverse() + revs = _logrevs(repo, opts) if not revs: return [] wanted = set()