Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548301
DiffusionMercurialRequest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
DiffusionMercurialRequest.php
View Options
<?php
final
class
DiffusionMercurialRequest
extends
DiffusionRequest
{
protected
function
isStableCommit
(
$symbol
)
{
if
(
$symbol
===
null
)
{
return
false
;
}
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
Mon, May 12, 1:47 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
107904
Default Alt Text
DiffusionMercurialRequest.php (478 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment