changeset 42227:c0e30c9ee5ba

phabricator: set local:commits time metadata as an int, not a string Same as arcanist does Differential Revision: https://phab.mercurial-scm.org/D6296
author Ian Moody <moz-ian@perix.co.uk>
date Mon, 22 Apr 2019 17:46:57 +0100
parents 289d82a070e9
children 7c0ece3cd3ee
files hgext/phabricator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/phabricator.py	Mon Apr 22 17:46:01 2019 +0100
+++ b/hgext/phabricator.py	Mon Apr 22 17:46:57 2019 +0100
@@ -397,7 +397,7 @@
             ctx.hex(): {
                 b'author': stringutil.person(ctx.user()),
                 b'authorEmail': stringutil.email(ctx.user()),
-                b'time': b'%d' % ctx.date()[0],
+                b'time': int(ctx.date()[0]),
             },
         }),
     }