Show More
@@ -603,6 +603,7 b' test-remotefilelog-permissions.t' | |||||
603 | test-remotefilelog-permisssions.t |
|
603 | test-remotefilelog-permisssions.t | |
604 | test-remotefilelog-prefetch.t |
|
604 | test-remotefilelog-prefetch.t | |
605 | test-remotefilelog-pull-noshallow.t |
|
605 | test-remotefilelog-pull-noshallow.t | |
|
606 | test-remotefilelog-repack.t | |||
606 | test-remotefilelog-share.t |
|
607 | test-remotefilelog-share.t | |
607 | test-remotefilelog-sparse.t |
|
608 | test-remotefilelog-sparse.t | |
608 | test-remotefilelog-tags.t |
|
609 | test-remotefilelog-tags.t |
@@ -410,16 +410,18 b' class baseunionstore(object):' | |||||
410 | def wrapped(self, *args, **kwargs): |
|
410 | def wrapped(self, *args, **kwargs): | |
411 | retrylog = self.retrylog or noop |
|
411 | retrylog = self.retrylog or noop | |
412 | funcname = fn.__name__ |
|
412 | funcname = fn.__name__ | |
413 | for i in pycompat.xrange(self.numattempts): |
|
413 | i = 0 | |
|
414 | while i < self.numattempts: | |||
414 | if i > 0: |
|
415 | if i > 0: | |
415 | retrylog('re-attempting (n=%d) %s\n' % (i, funcname)) |
|
416 | retrylog('re-attempting (n=%d) %s\n' % (i, funcname)) | |
416 | self.markforrefresh() |
|
417 | self.markforrefresh() | |
|
418 | i += 1 | |||
417 | try: |
|
419 | try: | |
418 | return fn(self, *args, **kwargs) |
|
420 | return fn(self, *args, **kwargs) | |
419 | except KeyError: |
|
421 | except KeyError: | |
420 |
|
|
422 | if i == self.numattempts: | |
421 | # retries exhausted |
|
423 | # retries exhausted | |
422 | retrylog('retries exhausted in %s, raising KeyError\n' % |
|
424 | retrylog('retries exhausted in %s, raising KeyError\n' % | |
423 | pycompat.sysbytes(funcname)) |
|
425 | pycompat.sysbytes(funcname)) | |
424 | raise |
|
426 | raise | |
425 | return wrapped |
|
427 | return wrapped |
General Comments 0
You need to be logged in to leave comments.
Login now