mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42: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:
parent
d1a68ccb37
commit
14f2f7fdd2
1 changed files with 8 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue