revlog: catch more specific exception in shortest()
Since revlog._partialmatch() catches RevlogError coming from cext and
re-raises AmbiguousPrefixLookupError, catching RevlogError here seems
less correct.
Differential Revision: https://phab.mercurial-scm.org/D4735
--- a/mercurial/revlog.py Mon Sep 24 22:32:30 2018 -0400
+++ b/mercurial/revlog.py Tue Sep 25 22:19:40 2018 +0900
@@ -1325,7 +1325,7 @@
def isvalid(prefix):
try:
node = self._partialmatch(prefix)
- except error.RevlogError:
+ except error.AmbiguousPrefixLookupError:
return False
except error.WdirUnsupported:
# single 'ff...' match