##// END OF EJS Templates
pyro4: Adapt pyro4 RemoteRepo to have the same API as http RemoteRepo class.
Martin Bornhold -
r404:94c8766a default
parent child Browse files
Show More
@@ -260,7 +260,7 b' class RemoteRepo(object):'
260 self._wire = {
260 self._wire = {
261 "path": path,
261 "path": path,
262 "config": config,
262 "config": config,
263 "context": uuid.uuid4(),
263 "context": self._create_vcs_cache_context(),
264 }
264 }
265 if with_wire:
265 if with_wire:
266 self._wire.update(with_wire)
266 self._wire.update(with_wire)
@@ -287,6 +287,19 b' class RemoteRepo(object):'
287 def __getitem__(self, key):
287 def __getitem__(self, key):
288 return self.revision(key)
288 return self.revision(key)
289
289
290 def _create_vcs_cache_context(self):
291 """
292 Creates a unique string which is passed to the VCSServer on every
293 remote call. It is used as cache key in the VCSServer.
294 """
295 return str(uuid.uuid4())
296
297 def invalidate_vcs_cache(self):
298 """
299 This is a no-op method for the pyro4 backend but we want to have the
300 same API for client.RemoteRepo and client_http.RemoteRepo classes.
301 """
302
290
303
291 def _get_proxy_method(proxy, name):
304 def _get_proxy_method(proxy, name):
292 try:
305 try:
General Comments 0
You need to be logged in to leave comments. Login now