Patchwork D3590: py3: make sure we pass str to date.strftime()

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:38 p.m.
Message ID <06b1acce9f425b220d51bf49ade242d9@localhost.localdomain>
Download mbox | patch
Permalink /patch/31711/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:38 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG543b7b349b2c: py3: make sure we pass str to date.strftime() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3590?vs=8761&id=8795

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

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(opts['dateformat'])
+            return date.strftime(pycompat.sysstr(opts['dateformat']))
     else:
         tmpl = opts.get('oldtemplate') or opts.get('template')
         tmpl = logcmdutil.maketemplater(ui, repo, tmpl)