Patchwork D3501: shortest: remove unnecessary check for revnum in isvalid()

login
register
mail settings
Submitter phabricator
Date May 11, 2018, 7:32 p.m.
Message ID <cf910ba2d4a69c2afba374082baf6094@localhost.localdomain>
Download mbox | patch
Permalink /patch/31517/
State Not Applicable
Headers show

Comments

phabricator - May 11, 2018, 7:32 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG76e933e0ccc9: shortest: remove unnecessary check for revnum in isvalid() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3501?vs=8554&id=8641

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -1524,7 +1524,7 @@ 
                 return True
             if node is None:
                 raise LookupError(node, self.indexfile, _('no node'))
-            return not isrev(prefix)
+            return True
 
         def maybewdir(prefix):
             return all(c == 'f' for c in prefix)