##// END OF EJS Templates
git/hg: skip double caching with bulk requests calls....
super-admin -
r1075:8fc1778b python3
parent child Browse files
Show More
@@ -324,6 +324,7 b' class GitRemote(RemoteBase):'
324 for attr in pre_load:
324 for attr in pre_load:
325 try:
325 try:
326 method = self._bulk_methods[attr]
326 method = self._bulk_methods[attr]
327 wire.update({'cache': False}) # disable cache for bulk calls so we don't double cache
327 args = [wire, rev]
328 args = [wire, rev]
328 result[attr] = method(*args)
329 result[attr] = method(*args)
329 except KeyError as e:
330 except KeyError as e:
@@ -255,6 +255,7 b' class HgRemote(RemoteBase):'
255 for attr in pre_load:
255 for attr in pre_load:
256 try:
256 try:
257 method = self._bulk_methods[attr]
257 method = self._bulk_methods[attr]
258 wire.update({'cache': False}) # disable cache for bulk calls so we don't double cache
258 result[attr] = method(wire, commit_id)
259 result[attr] = method(wire, commit_id)
259 except KeyError as e:
260 except KeyError as e:
260 raise exceptions.VcsException(e)(
261 raise exceptions.VcsException(e)(
General Comments 0
You need to be logged in to leave comments. Login now