D1557: py3: use encoding.strtolocal() to convert string to bytes
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Dec 2 19:51:50 UTC 2017
pulkit updated this revision to Diff 4085.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1557?vs=4050&id=4085
REVISION DETAIL
https://phab.mercurial-scm.org/D1557
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -721,6 +721,7 @@
else:
timestr = time.strftime(r"%Y-%m-%d %H:%M:%S ",
time.localtime(ent[3]))
+ timestr = encoding.strtolocal(timestr)
if ent[1] & 0o20000:
mode = 'lnk'
else:
To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list