D1478: py3: cast error message to localstr in blackbox.py
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Jan 17 09:47:15 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdb1c2e2d8037: py3: cast error message to localstr in blackbox.py (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1478?vs=4823&id=4852
REVISION DETAIL
https://phab.mercurial-scm.org/D1478
AFFECTED FILES
hgext/blackbox.py
CHANGE DETAILS
diff --git a/hgext/blackbox.py b/hgext/blackbox.py
--- a/hgext/blackbox.py
+++ b/hgext/blackbox.py
@@ -44,6 +44,7 @@
from mercurial.node import hex
from mercurial import (
+ encoding,
registrar,
ui as uimod,
util,
@@ -182,7 +183,7 @@
fp.write(fmt % args)
except (IOError, OSError) as err:
self.debug('warning: cannot write to blackbox.log: %s\n' %
- err.strerror)
+ encoding.strtolocal(err.strerror))
# do not restore _bbinlog intentionally to avoid failed
# logging again
else:
To: indygreg, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list