コード例 #1
0
 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();
 }
コード例 #2
0
 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();
 }