Show More
@@ -609,6 +609,7 b' class HgRemote(RemoteBase):' | |||||
609 | @reraise_safe_exceptions |
|
609 | @reraise_safe_exceptions | |
610 | def lookup(self, wire, revision, both): |
|
610 | def lookup(self, wire, revision, both): | |
611 | cache_on, context_uid, repo_id = self._cache_on(wire) |
|
611 | cache_on, context_uid, repo_id = self._cache_on(wire) | |
|
612 | ||||
612 | @self.region.conditional_cache_on_arguments(condition=cache_on) |
|
613 | @self.region.conditional_cache_on_arguments(condition=cache_on) | |
613 | def _lookup(_context_uid, _repo_id, _revision, _both): |
|
614 | def _lookup(_context_uid, _repo_id, _revision, _both): | |
614 |
|
615 |
@@ -67,7 +67,7 b' from mercurial.url import httpbasicauthh' | |||||
67 | def get_ctx(repo, ref): |
|
67 | def get_ctx(repo, ref): | |
68 | try: |
|
68 | try: | |
69 | ctx = repo[ref] |
|
69 | ctx = repo[ref] | |
70 | except ProgrammingError: |
|
70 | except (ProgrammingError, TypeError): | |
71 | # we're unable to find the rev using a regular lookup, we fallback |
|
71 | # we're unable to find the rev using a regular lookup, we fallback | |
72 | # to slower, but backward compat revsymbol usage |
|
72 | # to slower, but backward compat revsymbol usage | |
73 | ctx = revsymbol(repo, ref) |
|
73 | ctx = revsymbol(repo, ref) |
General Comments 0
You need to be logged in to leave comments.
Login now