getRevision();
$diff = $this->getDiff();
$status = $revision->getStatus();
$next_step = null;
if ($status == ArcanistDifferentialRevisionStatus::ACCEPTED) {
switch ($diff->getSourceControlSystem()) {
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
$next_step = 'arc merge';
break;
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
$next_step = 'arc amend or arc merge';
break;
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
$next_step = 'arc commit';
break;
}
if ($next_step) {
$next_step = ' · Next step: '.$next_step;
}
}
$status =
ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status);
return ''.$status.''.$next_step;
}
}