Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96618012
PhabricatorRepositorySVNSubpathTransaction.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, Dec 29, 00:23
Size
1000 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 00:23 (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
23200296
Attached To
rPH Phabricator
PhabricatorRepositorySVNSubpathTransaction.php
View Options
<?php
final
class
PhabricatorRepositorySVNSubpathTransaction
extends
PhabricatorRepositoryTransactionType
{
const
TRANSACTIONTYPE
=
'repo:svn-subpath'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getDetail
(
'svn-subpath'
);
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setDetail
(
'svn-subpath'
,
$value
);
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
if
(!
strlen
(
$new
))
{
return
pht
(
'%s removed %s as the "Import Only" path.'
,
$this
->
renderAuthor
(),
$this
->
renderOldValue
());
}
else
if
(!
strlen
(
$old
))
{
return
pht
(
'%s set the repository "Import Only" path to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderNewValue
());
}
else
{
return
pht
(
'%s changed the "Import Only" path from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderOldValue
(),
$this
->
renderNewValue
());
}
}
}
Event Timeline
Log In to Comment