Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281503
ArcanistBranchesWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistBranchesWorkflow.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment