Patchwork D6297: phabricator: include branch in the diffproperty metadata

login
register
mail settings
Submitter phabricator
Date April 25, 2019, 6:07 p.m.
Message ID <f1f6381a735971c1d7d97781d0df1a73@localhost.localdomain>
Download mbox | patch
Permalink /patch/39827/
State Not Applicable
Headers show

Comments

phabricator - April 25, 2019, 6:07 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd49ab47be8a6: phabricator: include branch in the diffproperty metadata (authored by Kwan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6297?vs=14885&id=14920

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

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -384,6 +384,7 @@ 
         b'data': templatefilters.json({
             b'user': ctx.user(),
             b'date': b'%d %d' % ctx.date(),
+            b'branch': ctx.branch(),
             b'node': ctx.hex(),
             b'parent': ctx.p1().hex(),
         }),
@@ -398,6 +399,7 @@ 
                 b'author': stringutil.person(ctx.user()),
                 b'authorEmail': stringutil.email(ctx.user()),
                 b'time': int(ctx.date()[0]),
+                b'branch': ctx.branch(),
             },
         }),
     }