Submitter | phabricator |
---|---|
Date | July 19, 2019, 5:37 p.m. |
Message ID | <differential-rev-PHID-DREV-623tl77kkamjss4mqapp-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/40981/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -1355,13 +1355,13 @@ """Find the shortest unambiguous prefix that matches node.""" def isvalid(prefix): try: - node = self._partialmatch(prefix) + matchednode = self._partialmatch(prefix) except error.AmbiguousPrefixLookupError: return False except error.WdirUnsupported: # single 'ff...' match return True - if node is None: + if matchednode is None: raise error.LookupError(node, self.indexfile, _('no node')) return True