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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri May 11 15:32:43 EDT 2018


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

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)



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


More information about the Mercurial-devel mailing list