D4735: revlog: catch more specific exception in shortest()

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Tue Sep 25 12:15:32 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7a9e2d85f475: revlog: catch more specific exception in shortest() (authored by yuja, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4735?vs=11348&id=11351

REVISION DETAIL
  https://phab.mercurial-scm.org/D4735

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
@@ -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



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


More information about the Mercurial-devel mailing list