summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2017-03-16 12:37:01 +0000
committerDaniel Stone <daniels@collabora.com>2017-03-16 12:54:19 +0000
commit7575cd81ef1712ae39030282773c7c1facab6282 (patch)
tree1206699d28bb96950797c2c9c56044b9fb78fea6
parent154fa6c20ca651b9697e303183cd3964774ffaf9 (diff)
Explicitly set revision title when creating
When creating a revision through the Conduit API, newer versions of Phabricator require we explicitly set the title in the field, rather than pulling it back from the commit message parsing. Signed-off-by: Daniel Stone <daniels@collabora.com> Differential Revision: https://phabricator.freedesktop.org/D1694
-rwxr-xr-xgit-phab1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-phab b/git-phab
index d562066..0e38619 100755
--- a/git-phab
+++ b/git-phab
@@ -1105,6 +1105,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
1105 corpus=arc_message) 1105 corpus=arc_message)
1106 1106
1107 fields = parsed_message["fields"] 1107 fields = parsed_message["fields"]
1108 fields["title"] = subject
1108 if not revision_id: 1109 if not revision_id:
1109 revision = phab.differential.createrevision(fields=fields, 1110 revision = phab.differential.createrevision(fields=fields,
1110 diffid=diff.diffid) 1111 diffid=diff.diffid)