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

login
register
mail settings
Submitter phabricator
Date Dec. 3, 2017, 9:13 a.m.
Message ID <89c0a24cd147360152a960ec74f00b96@localhost.localdomain>
Download mbox | patch
Permalink /patch/25909/
State Not Applicable
Headers show

Comments

phabricator - Dec. 3, 2017, 9:13 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd4b108fdf423: py3: use encoding.strtolocal() to convert string to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1557?vs=4085&id=4088

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: