phabricator: include commit (node) and parent in the local:commits metadata
authorIan Moody <moz-ian@perix.co.uk>
Sat, 20 Apr 2019 16:11:23 +0100
changeset 42256 9421d7e12888
parent 42255 00e065fb1469
child 42257 a4f7dceb07bf
phabricator: include commit (node) and parent in the local:commits metadata Differential Revision: https://phab.mercurial-scm.org/D6298
hgext/phabricator.py
--- 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(),
             },
         }),