]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Make "arc which --show-base" work as expected
authorepriestley <git@epriestley.com>
Wed, 25 Feb 2015 21:09:00 +0000 (13:09 -0800)
committerepriestley <git@epriestley.com>
Wed, 25 Feb 2015 21:09:00 +0000 (13:09 -0800)
Summary: This is supposed to just print out the base revision, but actually prints out the repository section first.

Test Plan: Ran `arc which`, `arc which --show-base`.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

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

src/workflow/ArcanistWhichWorkflow.php

index 32e6eae900a1bdfd66742747220dc58d91a84179..eca4c7339f275eb417ad57153e7b929196797fcd 100644 (file)
@@ -75,8 +75,10 @@ EOTEXT
   public function run() {
     $console = PhutilConsole::getConsole();
 
-    $this->printRepositorySection();
-    $console->writeOut("\n");
+    if (!$this->getArgument('show-base')) {
+      $this->printRepositorySection();
+      $console->writeOut("\n");
+    }
 
     $repository_api = $this->getRepositoryAPI();