--- a/mercurial/scmutil.py Wed May 02 22:56:10 2018 -0700
+++ b/mercurial/scmutil.py Sat May 05 00:16:43 2018 -0700
@@ -448,7 +448,10 @@
# _partialmatch() of filtered changelog could take O(len(repo)) time,
# which would be unacceptably slow. so we look for hash collision in
# unfiltered space, which means some hashes may be slightly longer.
- return repo.unfiltered().changelog.shortest(node, minlength)
+ try:
+ return repo.unfiltered().changelog.shortest(node, minlength)
+ except error.LookupError:
+ raise error.RepoLookupError()
def isrevsymbol(repo, symbol):
"""Checks if a symbol exists in the repo.