Mercurial > public > mercurial-scm > hg
diff hgext/churn.py @ 38066:543b7b349b2c
py3: make sure we pass str to date.strftime()
Differential Revision: https://phab.mercurial-scm.org/D3590
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 19 May 2018 18:21:21 +0530 |
parents | c6061cadb400 |
children | 1978abdb216c |
line wrap: on
line diff
--- a/hgext/churn.py Sat May 19 21:47:59 2018 +0530 +++ b/hgext/churn.py Sat May 19 18:21:21 2018 +0530 @@ -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)