# HG changeset patch # User Martin von Zweigbergk # Date 1525386316 25200 # Node ID 76e933e0ccc97b2f1d33148089ffd47414ffba90 # Parent 0db7fe7c34d36cf341e8c260b641b19377759ef8 shortest: remove unnecessary check for revnum in isvalid() We now always disambiguating against revnums after we've found an otherwise valid prefix, so we can safely remove the early isrev() check in isvalid(). Differential Revision: https://phab.mercurial-scm.org/D3501 diff -r 0db7fe7c34d3 -r 76e933e0ccc9 mercurial/revlog.py --- a/mercurial/revlog.py Thu May 03 15:01:33 2018 -0700 +++ b/mercurial/revlog.py Thu May 03 15:25:16 2018 -0700 @@ -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)