# HG changeset patch # User Ian Moody # Date 2019-04-20 15:11:23 # Node ID 9421d7e12888ba57a5a01a6f811c60a4b1b7e52d # Parent 00e065fb14690f7648777d72a4a7e3c48c0b870b phabricator: include commit (node) and parent in the local:commits metadata Differential Revision: https://phab.mercurial-scm.org/D6298 diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -399,6 +399,8 @@ def writediffproperties(ctx, diff): 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(), }, }),