File: 0002-Explicitly-set-revision-title-when-creating.patch

package info (click to toggle)
git-phab 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 324 kB
  • ctags: 17
  • sloc: python: 3,062; makefile: 11
file content (31 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 7575cd81ef1712ae39030282773c7c1facab6282 Mon Sep 17 00:00:00 2001
From: Daniel Stone <daniels@collabora.com>
Date: Thu, 16 Mar 2017 12:37:01 +0000
Subject: [PATCH] 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
---
 git-phab | 1 +
 1 file changed, 1 insertion(+)

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)
             corpus=arc_message)
 
         fields = parsed_message["fields"]
+        fields["title"] = subject
         if not revision_id:
             revision = phab.differential.createrevision(fields=fields,
                                                         diffid=diff.diffid)
-- 
2.9.3