1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +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:
Joshua Spence 2015-02-04 06:54:07 +11:00
parent 6b31c0b98a
commit 0fd04109e9

View file

@ -69,13 +69,12 @@ EOTEXT
);
}
public function getSupportedRevisionControlSystems() {
return array('git', 'hg');
}
public function run() {
$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');
if ($names) {