]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Arc output the correct action being taken
authorGuy Warner <gwarner@blendtec.com>
Tue, 28 Jan 2014 16:53:50 +0000 (08:53 -0800)
committerepriestley <git@epriestley.com>
Tue, 28 Jan 2014 16:54:01 +0000 (08:54 -0800)
Summary: Fixes T3929. If arc is merging it will say merging * into * vs always saying rebasing * onto *

Test Plan: Make arc do a rebase, then a merge

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran
Maniphest Tasks: T3929

Differential Revision: https://secure.phabricator.com/D8085

src/workflow/ArcanistLandWorkflow.php

index d1b9dc3103f9d5717c8200795934e7eb1019c5c0..67b8e746419d5e325beaf882241d64c4d0ca4cc0 100644 (file)
@@ -594,14 +594,13 @@ EOTEXT
   private function rebase() {
     $repository_api = $this->getRepositoryAPI();
 
-    echo phutil_console_format(
-        "Rebasing **%s** onto **%s**\n",
-        $this->branch,
-        $this->onto);
-
     chdir($repository_api->getPath());
     if ($this->isGit) {
       if ($this->shouldUpdateWithRebase) {
+        echo phutil_console_format(
+          "Rebasing **%s** onto **%s**\n",
+          $this->branch,
+          $this->onto);
         $err = phutil_passthru('git rebase %s', $this->onto);
         if ($err) {
           throw new ArcanistUsageException(
@@ -612,6 +611,10 @@ EOTEXT
             "run 'arc land' again.");
         }
       } else {
+        echo phutil_console_format(
+          "Merging **%s** into **%s**\n",
+          $this->branch,
+          $this->onto);
         $err = phutil_passthru(
           'git merge --no-stat %s -m %s',
           $this->onto,