Patchwork D3642: py3: use encoding.strfromlocal() instead of pycompat.sysstr()

login
register
mail settings
Submitter phabricator
Date May 22, 2018, 11:14 a.m.
Message ID <41a2ab88e9272277bfc7a2f63e868aec@localhost.localdomain>
Download mbox | patch
Permalink /patch/31807/
State Not Applicable
Headers show

Comments

phabricator - May 22, 2018, 11:14 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd6d939a3676f: py3: use encoding.strfromlocal() instead of pycompat.sysstr() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3642?vs=8864&id=8865

REVISION DETAIL
  https://phab.mercurial-scm.org/D3642

AFFECTED FILES
  hgext/churn.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -52,7 +52,7 @@ 
         def getkey(ctx):
             t, tz = ctx.date()
             date = datetime.datetime(*time.gmtime(float(t) - tz)[:6])
-            return date.strftime(pycompat.sysstr(opts['dateformat']))
+            return date.strftime(encoding.strfromlocal(opts['dateformat']))
     else:
         tmpl = opts.get('oldtemplate') or opts.get('template')
         tmpl = logcmdutil.maketemplater(ui, repo, tmpl)