Mercurial > hg
comparison hgext/phabricator.py @ 42189: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 | d49ab47be8a6 |
comparison
equal
deleted
inserted
replaced
42188:289d82a070e9 | 42189:c0e30c9ee5ba |
---|---|
395 b'name': b'local:commits', | 395 b'name': b'local:commits', |
396 b'data': templatefilters.json({ | 396 b'data': templatefilters.json({ |
397 ctx.hex(): { | 397 ctx.hex(): { |
398 b'author': stringutil.person(ctx.user()), | 398 b'author': stringutil.person(ctx.user()), |
399 b'authorEmail': stringutil.email(ctx.user()), | 399 b'authorEmail': stringutil.email(ctx.user()), |
400 b'time': b'%d' % ctx.date()[0], | 400 b'time': int(ctx.date()[0]), |
401 }, | 401 }, |
402 }), | 402 }), |
403 } | 403 } |
404 callconduit(ctx.repo(), b'differential.setdiffproperty', params) | 404 callconduit(ctx.repo(), b'differential.setdiffproperty', params) |
405 | 405 |