Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2342087
DiffusionMercurialBranchQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
831 B
Referenced Files
None
Subscribers
None
DiffusionMercurialBranchQuery.php
View Options
<?php
final
class
DiffusionMercurialBranchQuery
extends
DiffusionBranchQuery
{
protected
function
executeQuery
()
{
$drequest
=
$this
->
getRequest
();
$repository
=
$drequest
->
getRepository
();
list
(
$stdout
)
=
$repository
->
execxLocalCommand
(
'--debug branches'
);
$branch_info
=
ArcanistMercurialParser
::
parseMercurialBranches
(
$stdout
);
$branches
=
array
();
foreach
(
$branch_info
as
$name
=>
$info
)
{
$branch
=
new
DiffusionBranchInformation
();
$branch
->
setName
(
$name
);
$branch
->
setHeadCommitIdentifier
(
$info
[
'rev'
]);
$branches
[]
=
$branch
;
}
if
(
$this
->
getOffset
())
{
$branches
=
array_slice
(
$branches
,
$this
->
getOffset
());
}
if
(
$this
->
getLimit
())
{
$branches
=
array_slice
(
$branches
,
0
,
$this
->
getLimit
());
}
return
$branches
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 9:41 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
446340
Default Alt Text
DiffusionMercurialBranchQuery.php (831 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment