mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50: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) {
|
if ($status == ArcanistDifferentialRevisionStatus::ACCEPTED) {
|
||||||
$next_step = null;
|
$next_step = null;
|
||||||
if ($local_vcs == $backing_vcs) {
|
switch ($local_vcs) {
|
||||||
switch ($local_vcs) {
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
||||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||||
$next_step = '<tt>hg push</tt>';
|
$next_step = '<tt>arc land</tt>';
|
||||||
break;
|
break;
|
||||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||||
$next_step = '<tt>arc land</tt>';
|
$next_step = '<tt>arc commit</tt>';
|
||||||
break;
|
break;
|
||||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
|
||||||
$next_step = '<tt>arc commit</tt>';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$next_step = '<tt>arc amend</tt>';
|
|
||||||
}
|
}
|
||||||
if ($next_step) {
|
if ($next_step) {
|
||||||
$info = ' · Next step: '.$next_step;
|
$info = ' · Next step: '.$next_step;
|
||||||
|
|
Loading…
Reference in a new issue