summaryrefslogtreecommitdiff
path: root/git-phab
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2016-07-27 22:07:00 -0400
committerThibault Saunier <tsaunier@gnome.org>2016-07-27 22:08:34 -0400
commit491aca2cc4821e8e2c27de909c06125934237d94 (patch)
treefa04d59b7a0936f08d1070f274047acae710cab9 /git-phab
parentf9d9bd0733d63183bc3b3771426710c733ee401a (diff)
Enhance printed information about attached commit
Diffstat (limited to 'git-phab')
-rwxr-xr-xgit-phab3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-phab b/git-phab
index 7bc2686..d35e70c 100755
--- a/git-phab
+++ b/git-phab
@@ -835,6 +835,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
for diff in diffs:
changes.append(self.get_changes_for_diff(diff))
+ print("Attaching commit %s... " % commit.hexsha, end="")
diff = self.phabricator.differential.creatediff(
changes=changes,
sourceMachine=socket.gethostname(),
@@ -850,6 +851,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
repositoryUUID="",
branch=self.branch_name,
repositoryPHID=self.phab_repo["phid"])
+ print("%s OK%s" % (Colors.OKGREEN, Colors.ENDC))
return diff
@@ -925,7 +927,6 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
diff = self.create_diff(commit, linter_status)
phab = self.phabricator
- print("attach " + commit.hexsha)
subject, body, fields, updates = self.parse_commit_msg(commit.message)
try: