Changeset View
Changeset View
Standalone View
Standalone View
src/ref/revision/ArcanistRevisionSymbolRefInspector.php
- This file was moved from src/ref/commitsymbol/ArcanistCommitSymbolRefInspector.php.
<?php | <?php | ||||
final class ArcanistCommitSymbolRefInspector | final class ArcanistRevisionSymbolRefInspector | ||||
extends ArcanistRefInspector { | extends ArcanistRefInspector { | ||||
public function getInspectFunctionName() { | public function getInspectFunctionName() { | ||||
return 'symbol'; | return 'revision'; | ||||
} | } | ||||
public function newInspectRef(array $argv) { | public function newInspectRef(array $argv) { | ||||
if (count($argv) !== 1) { | if (count($argv) !== 1) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Expected exactly one argument to "symbol(...)" with a '. | 'Expected exactly one argument to "revision(...)" with a '. | ||||
'commit symbol.')); | 'revision symbol.')); | ||||
} | } | ||||
return id(new ArcanistCommitSymbolRef()) | return id(new ArcanistRevisionSymbolRef()) | ||||
->setSymbol($argv[0]); | ->setSymbol($argv[0]); | ||||
} | } | ||||
} | } |