D6296: phabricator: set local:commits time metadata as an int, not a string, same as arcanist does
Kwan (Ian Moody)
phabricator at mercurial-scm.org
Mon Apr 22 15:52:42 UTC 2019
Kwan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D6296
AFFECTED FILES
hgext/phabricator.py
CHANGE DETAILS
diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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]),
},
}),
}
To: Kwan, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list