Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
commit d8182cf55d501b1359f6f91bc0b75b50baa08037 1 parent dd59423
Evan Priestley epriestley authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/workflow/ArcanistWhichWorkflow.php
6 src/workflow/ArcanistWhichWorkflow.php
View
@@ -75,8 +75,10 @@ public function getArguments() {
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();
Please sign in to comment.
Something went wrong with that request. Please try again.