1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-26 00:32:41 +01:00

Arc output the correct action being taken

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
This commit is contained in:
Guy Warner 2014-01-28 08:53:50 -08:00 committed by epriestley
parent d1a68ccb37
commit 14f2f7fdd2

View file

@ -594,14 +594,13 @@ EOTEXT
private function rebase() {
$repository_api = $this->getRepositoryAPI();
chdir($repository_api->getPath());
if ($this->isGit) {
if ($this->shouldUpdateWithRebase) {
echo phutil_console_format(
"Rebasing **%s** onto **%s**\n",
$this->branch,
$this->onto);
chdir($repository_api->getPath());
if ($this->isGit) {
if ($this->shouldUpdateWithRebase) {
$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,