mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Support git svn dcommit
in arc land
Test Plan: Displayed accepted Git SVN revision. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4124
This commit is contained in:
parent
f2271564ed
commit
89ab9d4acb
1 changed files with 8 additions and 14 deletions
|
@ -25,20 +25,14 @@ final class DifferentialRevisionStatusFieldSpecification
|
|||
|
||||
if ($status == ArcanistDifferentialRevisionStatus::ACCEPTED) {
|
||||
$next_step = null;
|
||||
if ($local_vcs == $backing_vcs) {
|
||||
switch ($local_vcs) {
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
||||
$next_step = '<tt>hg push</tt>';
|
||||
break;
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||
$next_step = '<tt>arc land</tt>';
|
||||
break;
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||
$next_step = '<tt>arc commit</tt>';
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$next_step = '<tt>arc amend</tt>';
|
||||
switch ($local_vcs) {
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||
$next_step = '<tt>arc land</tt>';
|
||||
break;
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||
$next_step = '<tt>arc commit</tt>';
|
||||
break;
|
||||
}
|
||||
if ($next_step) {
|
||||
$info = ' · Next step: '.$next_step;
|
||||
|
|
Loading…
Reference in a new issue