public function run() { $repository_api = $this->getRepositoryAPI(); if (!$repository_api instanceof ArcanistMercurialAPI) { throw new ArcanistUsageException('arc bookmark is only supported under Mercurial.'); } return parent::run(); }
public function run() { $repository_api = $this->getRepositoryAPI(); if (!$repository_api instanceof ArcanistGitAPI) { throw new ArcanistUsageException('arc branch is only supported under Git.'); } return parent::run(); }