Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120688063
PhabricatorRepositoryOldRef.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 6, 07:54
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jul 8, 07:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27230145
Attached To
rPH Phabricator
PhabricatorRepositoryOldRef.php
View Options
<?php
/**
* Stores outdated refs which need to be checked for reachability.
*
* When a branch is deleted, the old HEAD ends up here and the discovery
* engine marks all the commits that previously appeared on it as unreachable.
*/
final
class
PhabricatorRepositoryOldRef
extends
PhabricatorRepositoryDAO
implements
PhabricatorPolicyInterface
{
protected
$repositoryPHID
;
protected
$commitIdentifier
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_TIMESTAMPS
=>
false
,
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'commitIdentifier'
=>
'text40'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_repository'
=>
array
(
'columns'
=>
array
(
'repositoryPHID'
),
),
),
)
+
parent
::
getConfiguration
();
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
return
PhabricatorPolicies
::
getMostOpenPolicy
();
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
public
function
describeAutomaticCapability
(
$capability
)
{
return
null
;
}
}
Event Timeline
Log In to Comment