changeset 42256:9421d7e12888

phabricator: include commit (node) and parent in the local:commits metadata Differential Revision: https://phab.mercurial-scm.org/D6298
author Ian Moody <moz-ian@perix.co.uk>
date Sat, 20 Apr 2019 16:11:23 +0100
parents 00e065fb1469
children a4f7dceb07bf
files hgext/phabricator.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/phabricator.py	Thu Apr 18 00:34:45 2019 -0700
+++ b/hgext/phabricator.py	Sat Apr 20 16:11:23 2019 +0100
@@ -399,6 +399,8 @@
                 b'author': stringutil.person(ctx.user()),
                 b'authorEmail': stringutil.email(ctx.user()),
                 b'time': int(ctx.date()[0]),
+                b'commit': ctx.hex(),
+                b'parents': [ctx.p1().hex()],
                 b'branch': ctx.branch(),
             },
         }),