D6372: log: remove an unnecessary "and opts.get('rev')" condition

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed May 15 14:31:19 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9bf6455741c4: log: remove an unnecessary "and opts.get('rev')" condition (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6372?vs=15069&id=15121

REVISION DETAIL
  https://phab.mercurial-scm.org/D6372

AFFECTED FILES
  mercurial/logcmdutil.py

CHANGE DETAILS

diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py
+++ b/mercurial/logcmdutil.py
@@ -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()):



To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list