Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F174009
comment.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Jul 3 2014, 8:29 PM
2014-07-03 20:29:51 (UTC+0)
Size
543 B
Referenced Files
None
Subscribers
None
comment.php
View Options
<?php
$actor_phid
=
some
user
who
is
going
to
author
these
comments
;
$table
=
new
PhabricatorRepositoryCommit
();
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$commit
)
{
if
(
$commit
->
getRepositoryPHID
()
!=
'the new repository'
)
{
continue
;
}
$old_hash
=
lookup
the
old
hash
somehow
;
id
(
new
PhabricatorAuditComment
())
->
setTargetPHID
(
$commit
->
getPHID
())
->
setActorPHID
(
$actor_phid
)
->
setAction
(
PhabricatorAuditActionConstants
::
COMMENT
)
->
setContent
(
"Previously this was known as {$old_hash}"
)
->
save
();
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/vw/of/aaynaywtxdtbukd7
Default Alt Text
comment.php (543 B)
Attached To
Mode
P1192 comment.php
Attached
Detach File
Event Timeline
Log In to Comment