# HG changeset patch # User Daniel Dourvaris # Date 2020-02-10 11:59:24 # Node ID c136d01d95b4d2403ac2a69a805bf7743dc870bf # Parent 6242cccee27863d53c0e3a23adfe1914271cded7 mercurial: fixed cases of lookup of branches that are exactly 20 character long. diff --git a/vcsserver/hgcompat.py b/vcsserver/hgcompat.py --- a/vcsserver/hgcompat.py +++ b/vcsserver/hgcompat.py @@ -67,7 +67,7 @@ from mercurial.url import httpbasicauthh def get_ctx(repo, ref): try: ctx = repo[ref] - except ProgrammingError: + except (ProgrammingError, LookupError, RepoLookupError): # we're unable to find the rev using a regular lookup, we fallback # to slower, but backward compat revsymbol usage ctx = revsymbol(repo, ref)