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