Mercurial > hg
changeset 42308:1ce46f0ee218
log: remove an unnecessary "and opts.get('rev')" condition
As Yuya pointed out, the condition is unnecessary since
revs.isdescending() would be true if --follow without --rev.
Differential Revision: https://phab.mercurial-scm.org/D6372
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 14 May 2019 09:13:39 -0700 |
parents | 264a2cbb25d0 |
children | 604c086ddde6 |
files | mercurial/logcmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/logcmdutil.py Tue Oct 16 04:59:36 2018 -0700 +++ b/mercurial/logcmdutil.py Tue May 14 09:13:39 2019 -0700 @@ -743,7 +743,7 @@ return match expr = _makerevset(repo, match, pats, slowpath, opts) - if opts.get('graph') and opts.get('rev'): + if opts.get('graph'): # User-specified revs might be unsorted, but don't sort before # _makerevset because it might depend on the order of revs if not (revs.isdescending() or revs.istopo()):