Patchwork D6298: phabricator: include commit (node) and parent in the local:commits metadata

login
register
mail settings
Submitter phabricator
Date May 6, 2019, 4:22 p.m.
Message ID <011d649f9211f957b78f290c11845562@localhost.localdomain>
Download mbox | patch
Permalink /patch/39970/
State Not Applicable
Headers show

Comments

phabricator - May 6, 2019, 4:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9421d7e12888: phabricator: include commit (node) and parent in the local:commits metadata (authored by Kwan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6298?vs=14886&id=15027

REVISION DETAIL
  https://phab.mercurial-scm.org/D6298

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




To: Kwan, #hg-reviewers
Cc: indygreg, mercurial-devel

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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(),
             },
         }),