# HG changeset patch # User Ian Moody # Date 2019-04-20 15:01:47 # Node ID d49ab47be8a6208f75a4a2d6497162f6eb1d599b # Parent c96507f6875cb985ea25cb885452a557965f8563 phabricator: include branch in the diffproperty metadata This does not make Phabricator display the branch in web UI anywhere as that still need us to use creatediff API for that. However a future patch will make phabread use this to include the branch in its `hg import`-able output. Differential Revision: https://phab.mercurial-scm.org/D6297 diff --git a/hgext/phabricator.py b/hgext/phabricator.py --- a/hgext/phabricator.py +++ b/hgext/phabricator.py @@ -384,6 +384,7 @@ def writediffproperties(ctx, diff): 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 @@ def writediffproperties(ctx, diff): b'author': stringutil.person(ctx.user()), b'authorEmail': stringutil.email(ctx.user()), b'time': int(ctx.date()[0]), + b'branch': ctx.branch(), }, }), }