Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91771694
DifferentialRevisionHasCommitRelationship.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
Thu, Nov 14, 07:46
Size
876 B
Mime Type
text/x-php
Expires
Sat, Nov 16, 07:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22322349
Attached To
rPH Phabricator
DifferentialRevisionHasCommitRelationship.php
View Options
<?php
final
class
DifferentialRevisionHasCommitRelationship
extends
DifferentialRevisionRelationship
{
const
RELATIONSHIPKEY
=
'revision.has-commit'
;
public
function
getEdgeConstant
()
{
return
DifferentialRevisionHasCommitEdgeType
::
EDGECONST
;
}
protected
function
getActionName
()
{
return
pht
(
'Edit Commits'
);
}
protected
function
getActionIcon
()
{
return
'fa-code'
;
}
public
function
canRelateObjects
(
$src
,
$dst
)
{
return
(
$dst
instanceof
PhabricatorRepositoryCommit
);
}
public
function
getDialogTitleText
()
{
return
pht
(
'Edit Related Commits'
);
}
public
function
getDialogHeaderText
()
{
return
pht
(
'Current Commits'
);
}
public
function
getDialogButtonText
()
{
return
pht
(
'Save Related Commits'
);
}
protected
function
newRelationshipSource
()
{
return
new
DiffusionCommitRelationshipSource
();
}
}
Event Timeline
Log In to Comment