phabricator: set local:commits time metadata as an int, not a string
authorIan Moody <moz-ian@perix.co.uk>
Mon, 22 Apr 2019 17:46:57 +0100
changeset 42189 c0e30c9ee5ba
parent 42188 289d82a070e9
child 42190 7c0ece3cd3ee
phabricator: set local:commits time metadata as an int, not a string Same as arcanist does Differential Revision: https://phab.mercurial-scm.org/D6296
hgext/phabricator.py
--- 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]),
             },
         }),
     }