Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82389520
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
Wed, Sep 11, 03:21
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Sep 13, 03:21 (2 d)
Engine
blob
Format
Raw Data
Handle
20693031
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