Show More
@@ -67,9 +67,13 b' from mercurial.url import httpbasicauthh' | |||
|
67 | 67 | def get_ctx(repo, ref): |
|
68 | 68 | try: |
|
69 | 69 | ctx = repo[ref] |
|
70 |
except |
|
|
70 | except ProgrammingError: | |
|
71 | 71 | # we're unable to find the rev using a regular lookup, we fallback |
|
72 | 72 | # to slower, but backward compat revsymbol usage |
|
73 | 73 | ctx = revsymbol(repo, ref) |
|
74 | ||
|
74 | except (LookupError, RepoLookupError): | |
|
75 | # Similar case as above but only for refs that are not numeric | |
|
76 | if isinstance(ref, (int, long)): | |
|
77 | raise | |
|
78 | ctx = revsymbol(repo, ref) | |
|
75 | 79 | return ctx |
General Comments 0
You need to be logged in to leave comments.
Login now