D5600: remotefilelog: fix logging in retry decorator
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 16 16:16:11 UTC 2019
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This still fails with an error about no exception being available to
re-raise, but so it goes.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5600
AFFECTED FILES
hgext/remotefilelog/basestore.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/basestore.py b/hgext/remotefilelog/basestore.py
--- a/hgext/remotefilelog/basestore.py
+++ b/hgext/remotefilelog/basestore.py
@@ -423,6 +423,7 @@
except KeyError:
pass
# retries exhausted
- retrylog('retries exhausted in %s, raising KeyError\n' % funcname)
+ retrylog('retries exhausted in %s, raising KeyError\n' %
+ pycompat.sysbytes(funcname))
raise
return wrapped
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list