Page MenuHomePhorge

ArcanistBranchesWorkflow.php
No OneTemporary

ArcanistBranchesWorkflow.php

<?php
final class ArcanistBranchesWorkflow
extends ArcanistMarkersWorkflow {
public function getWorkflowName() {
return 'branches';
}
public function getWorkflowArguments() {
return array();
}
public function getWorkflowInformation() {
$help = pht(<<<EOHELP
Lists branches in the working copy, annotated with additional information
about review status.
EOHELP
);
return $this->newWorkflowInformation()
->setSynopsis(
pht('Show an enhanced view of branches in the working copy.'))
->addExample(pht('**branches**'))
->setHelp($help);
}
protected function getWorkflowMarkerType() {
$api = $this->getRepositoryAPI();
$marker_type = ArcanistMarkerRef::TYPE_BRANCH;
if (!$this->hasMarkerTypeSupport($marker_type)) {
throw new PhutilArgumentUsageException(
pht(
'The version control system ("%s") in the current working copy '.
'does not support branches.',
$api->getSourceControlSystemName()));
}
return $marker_type;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Mar 23, 22:42 (4 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115235
Default Alt Text
ArcanistBranchesWorkflow.php (1 KB)

Event Timeline