Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950096
DiffusionMercurialRequest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
487 B
Referenced Files
None
Subscribers
None
DiffusionMercurialRequest.php
View Options
<?php
final
class
DiffusionMercurialRequest
extends
DiffusionRequest
{
public
function
supportsBranches
()
{
return
true
;
}
protected
function
isStableCommit
(
$symbol
)
{
return
preg_match
(
'/^[a-f0-9]{40}
\z
/'
,
$symbol
);
}
public
function
getBranch
()
{
if
(
$this
->
branch
)
{
return
$this
->
branch
;
}
if
(
$this
->
repository
)
{
return
$this
->
repository
->
getDefaultBranch
();
}
throw
new
Exception
(
pht
(
'Unable to determine branch!'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 1:56 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224092
Default Alt Text
DiffusionMercurialRequest.php (487 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment