From d8182cf55d501b1359f6f91bc0b75b50baa08037 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 25 Feb 2015 13:09:00 -0800 Subject: [PATCH] Make "arc which --show-base" work as expected 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/workflow/ArcanistWhichWorkflow.php b/src/workflow/ArcanistWhichWorkflow.php index 32e6eae9..eca4c733 100644 --- a/src/workflow/ArcanistWhichWorkflow.php +++ b/src/workflow/ArcanistWhichWorkflow.php @@ -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();