mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
Change "any" to explicitly list revision control systems
Summary: Using `array('any')` to represent `array('git', 'hg', 'svn')` is a bit magical and leads to a lot of special-casing. Test Plan: Verified that tab completion (ala `ArcanistShellCompleteWorkflow`) still worked. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11604
This commit is contained in:
parent
8cad12034f
commit
623df14ae5
2 changed files with 2 additions and 5 deletions
|
@ -82,10 +82,7 @@ EOTEXT
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$supported = $workflow->getSupportedRevisionControlSystems();
|
if (!in_array($vcs, $workflow->getSupportedRevisionControlSystems())) {
|
||||||
|
|
||||||
$ok = (in_array('any', $supported) || in_array($vcs, $supported));
|
|
||||||
if (!$ok) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1216,7 +1216,7 @@ abstract class ArcanistWorkflow extends Phobject {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getSupportedRevisionControlSystems() {
|
protected function getSupportedRevisionControlSystems() {
|
||||||
return array('any');
|
return array('git', 'hg', 'svn');
|
||||||
}
|
}
|
||||||
|
|
||||||
final protected function getPassthruArgumentsAsMap($command) {
|
final protected function getPassthruArgumentsAsMap($command) {
|
||||||
|
|
Loading…
Reference in a new issue