Show More
@@ -29,6 +29,7 b' from mercurial import commands' | |||
|
29 | 29 | from mercurial import unionrepo |
|
30 | 30 | from mercurial import verify |
|
31 | 31 | from mercurial import repair |
|
32 | from mercurial.error import AmbiguousPrefixLookupError | |
|
32 | 33 | |
|
33 | 34 | import vcsserver |
|
34 | 35 | from vcsserver import exceptions |
@@ -735,6 +736,10 b' class HgRemote(RemoteBase):' | |||
|
735 | 736 | rev = rev + -1 |
|
736 | 737 | try: |
|
737 | 738 | ctx = self._get_ctx(repo, rev) |
|
739 | except (AmbiguousPrefixLookupError) as e: | |
|
740 | e = RepoLookupError(rev) | |
|
741 | e._org_exc_tb = traceback.format_exc() | |
|
742 | raise exceptions.LookupException(e)(rev) | |
|
738 | 743 | except (TypeError, RepoLookupError, binascii.Error) as e: |
|
739 | 744 | e._org_exc_tb = traceback.format_exc() |
|
740 | 745 | raise exceptions.LookupException(e)(rev) |
General Comments 0
You need to be logged in to leave comments.
Login now