phabricator: include branch in the phabread output
authorIan Moody <moz-ian@perix.co.uk>
Mon, 22 Apr 2019 18:55:27 +0100
changeset 42258 231334c1ee96
parent 42257 a4f7dceb07bf
child 42259 d1c7446d0c58
phabricator: include branch in the phabread output Depends on D6301 Differential Revision: https://phab.mercurial-scm.org/D6302
hgext/phabricator.py
--- a/hgext/phabricator.py	Mon Apr 22 18:55:26 2019 +0100
+++ b/hgext/phabricator.py	Mon Apr 22 18:55:27 2019 +0100
@@ -636,7 +636,8 @@
 # Map from "hg:meta" keys to header understood by "hg import". The order is
 # consistent with "hg export" output.
 _metanamemap = util.sortdict([(b'user', b'User'), (b'date', b'Date'),
-                              (b'node', b'Node ID'), (b'parent', b'Parent ')])
+                              (b'branch', b'Branch'), (b'node', b'Node ID'),
+                              (b'parent', b'Parent ')])
 
 def _confirmbeforesend(repo, revs, oldmap):
     url, token = readurltoken(repo)