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

login
register
mail settings
Submitter phabricator
Date May 15, 2019, 6:31 p.m.
Message ID <15dbfbdcaee7c915fc27ea8c4a34de47@localhost.localdomain>
Download mbox | patch
Permalink /patch/40067/
State Not Applicable
Headers show

Comments

phabricator - May 15, 2019, 6:31 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9bf6455741c4: log: remove an unnecessary &quot;and opts.get(&#039;rev&#039;)&quot; 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




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

Patch

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()):