# HG changeset patch # User Martin von Zweigbergk # Date 2019-05-14 16:13:39 # Node ID 9bf6455741c4f723a1806e3835ee2346b7141c0c # Parent 2e97640c598ef5515118f5f736f5fbff4eef07d1 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 diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py +++ b/mercurial/logcmdutil.py @@ -743,7 +743,7 @@ def getrevs(repo, pats, opts): 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()):