##// END OF EJS Templates
mercurial: don't raise exceptions on AmbiguousPrefixLookupError
super-admin -
r1141:9ac2e7b2 default
parent child Browse files
Show More
@@ -29,6 +29,7 b' from mercurial import commands'
29 from mercurial import unionrepo
29 from mercurial import unionrepo
30 from mercurial import verify
30 from mercurial import verify
31 from mercurial import repair
31 from mercurial import repair
32 from mercurial.error import AmbiguousPrefixLookupError
32
33
33 import vcsserver
34 import vcsserver
34 from vcsserver import exceptions
35 from vcsserver import exceptions
@@ -735,6 +736,10 b' class HgRemote(RemoteBase):'
735 rev = rev + -1
736 rev = rev + -1
736 try:
737 try:
737 ctx = self._get_ctx(repo, rev)
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 except (TypeError, RepoLookupError, binascii.Error) as e:
743 except (TypeError, RepoLookupError, binascii.Error) as e:
739 e._org_exc_tb = traceback.format_exc()
744 e._org_exc_tb = traceback.format_exc()
740 raise exceptions.LookupException(e)(rev)
745 raise exceptions.LookupException(e)(rev)
General Comments 0
You need to be logged in to leave comments. Login now