Patchwork D1557: py3: use encoding.strtolocal() to convert string to bytes

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2017, 7:51 p.m.
Message ID <847f612f7f2a87c00905b4565fbddaf1@localhost.localdomain>
Download mbox | patch
Permalink /patch/25902/
State Not Applicable
Headers show

Comments

phabricator - Dec. 2, 2017, 7:51 p.m.
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




To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel

Patch

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: