mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Indicate relevant VCS for arc feature
Summary: This workflow only works on git + mercurial. Test Plan: I don't even subversion. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11626
This commit is contained in:
parent
6b31c0b98a
commit
0fd04109e9
1 changed files with 4 additions and 5 deletions
|
@ -69,13 +69,12 @@ EOTEXT
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getSupportedRevisionControlSystems() {
|
||||||
|
return array('git', 'hg');
|
||||||
|
}
|
||||||
|
|
||||||
public function run() {
|
public function run() {
|
||||||
$repository_api = $this->getRepositoryAPI();
|
$repository_api = $this->getRepositoryAPI();
|
||||||
if (!($repository_api instanceof ArcanistGitAPI) &&
|
|
||||||
!($repository_api instanceof ArcanistMercurialAPI)) {
|
|
||||||
throw new ArcanistUsageException(
|
|
||||||
'arc feature is only supported under Git and Mercurial.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$names = $this->getArgument('branch');
|
$names = $this->getArgument('branch');
|
||||||
if ($names) {
|
if ($names) {
|
||||||
|
|
Loading…
Reference in a new issue