Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106763256
DifferentialParentRevisionsField.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
Mon, Mar 31, 06:39
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Apr 2, 06:39 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25269101
Attached To
rPH Phabricator
DifferentialParentRevisionsField.php
View Options
<?php
final
class
DifferentialParentRevisionsField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:depends-on'
;
}
public
function
getFieldName
()
{
return
pht
(
'Parent Revisions'
);
}
public
function
canDisableField
()
{
return
false
;
}
public
function
getFieldDescription
()
{
return
pht
(
'Lists revisions this one depends on.'
);
}
public
function
getProTips
()
{
return
array
(
pht
(
'Create a dependency between revisions by writing '
.
'"%s" in your summary.'
,
'Depends on D123'
),
);
}
public
function
shouldAppearInConduitDictionary
()
{
// To improve performance, we exclude this field from Conduit results.
// See T11404 for discussion. In modern "differential.revision.search",
// this information is available efficiently as an attachment.
return
false
;
}
public
function
getConduitDictionaryValue
()
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$this
->
getObject
()->
getPHID
(),
DifferentialRevisionDependsOnRevisionEdgeType
::
EDGECONST
);
}
}
Event Timeline
Log In to Comment