mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Initialize variable in Next Step
Test Plan: None. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5020
This commit is contained in:
parent
2f66138464
commit
ee663afdeb
1 changed files with 4 additions and 6 deletions
|
@ -71,27 +71,25 @@ final class DifferentialRevisionDetailView extends AphrontView {
|
|||
switch ($local_vcs) {
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
||||
$bookmark = $this->getDiff()->getBookmark();
|
||||
$command = ($bookmark != ''
|
||||
$next_step = ($bookmark != ''
|
||||
? csprintf('arc land %s', $bookmark)
|
||||
: 'arc land');
|
||||
break;
|
||||
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||
$branch = $this->getDiff()->getBranch();
|
||||
$command = ($branch != ''
|
||||
$next_step = ($branch != ''
|
||||
? csprintf('arc land %s', $branch)
|
||||
: 'arc land');
|
||||
break;
|
||||
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||
$command = 'arc commit';
|
||||
$next_step = 'arc commit';
|
||||
break;
|
||||
}
|
||||
if ($command) {
|
||||
$next_step = phutil_tag('tt', array(), $command);
|
||||
}
|
||||
}
|
||||
if ($next_step) {
|
||||
$next_step = phutil_tag('tt', array(), $next_step);
|
||||
$properties->addProperty(pht('Next Step'), $next_step);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue