##// END OF EJS Templates
caches: ensure we return serializable results from vcscalls
super-admin -
r1136:1721e701 default
parent child Browse files
Show More
@@ -447,9 +447,9 b' class GitRemote(RemoteBase):'
447 result[attr] = method(wire, _commit_id, _path)
447 result[attr] = method(wire, _commit_id, _path)
448 except KeyError as e:
448 except KeyError as e:
449 raise exceptions.VcsException(e)(f'Unknown bulk attribute: "{attr}"')
449 raise exceptions.VcsException(e)(f'Unknown bulk attribute: "{attr}"')
450 return BinaryEnvelope(result)
450 return result
451
451
452 return _bulk_file_request(repo_id, commit_id, path, sorted(pre_load))
452 return BinaryEnvelope(_bulk_file_request(repo_id, commit_id, path, sorted(pre_load)))
453
453
454 def _build_opener(self, url: str):
454 def _build_opener(self, url: str):
455 handlers = []
455 handlers = []
@@ -583,9 +583,9 b' class HgRemote(RemoteBase):'
583 result[attr] = method(wire, _commit_id, _path)
583 result[attr] = method(wire, _commit_id, _path)
584 except KeyError as e:
584 except KeyError as e:
585 raise exceptions.VcsException(e)(f'Unknown bulk attribute: "{attr}"')
585 raise exceptions.VcsException(e)(f'Unknown bulk attribute: "{attr}"')
586 return BinaryEnvelope(result)
586 return result
587
587
588 return _bulk_file_request(repo_id, commit_id, path, sorted(pre_load))
588 return BinaryEnvelope(_bulk_file_request(repo_id, commit_id, path, sorted(pre_load)))
589
589
590 @reraise_safe_exceptions
590 @reraise_safe_exceptions
591 def fctx_annotate(self, wire, revision, path):
591 def fctx_annotate(self, wire, revision, path):
@@ -139,9 +139,9 b' class SvnRemote(RemoteBase):'
139 result[attr] = method(wire, _commit_id, _path)
139 result[attr] = method(wire, _commit_id, _path)
140 except KeyError as e:
140 except KeyError as e:
141 raise exceptions.VcsException(e)(f'Unknown bulk attribute: "{attr}"')
141 raise exceptions.VcsException(e)(f'Unknown bulk attribute: "{attr}"')
142 return BinaryEnvelope(result)
142 return result
143
143
144 return _bulk_file_request(repo_id, commit_id, path, sorted(pre_load))
144 return BinaryEnvelope(_bulk_file_request(repo_id, commit_id, path, sorted(pre_load)))
145
145
146 @reraise_safe_exceptions
146 @reraise_safe_exceptions
147 def discover_svn_version(self):
147 def discover_svn_version(self):
General Comments 0
You need to be logged in to leave comments. Login now