Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F464926
20180809.repo_identities.activity.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
573 B
Referenced Files
None
Subscribers
None
20180809.repo_identities.activity.php
View Options
<?php
// Advise installs to rebuild the repository identities.
// If the install has no commits (or no commits that lack an
// authorIdentityPHID), don't require a rebuild.
$commits
=
id
(
new
PhabricatorRepositoryCommit
())
->
loadAllWhere
(
'authorIdentityPHID IS NULL LIMIT 1'
);
if
(!
$commits
)
{
return
;
}
try
{
id
(
new
PhabricatorConfigManualActivity
())
->
setActivityType
(
PhabricatorConfigManualActivity
::
TYPE_IDENTITIES
)
->
save
();
}
catch
(
AphrontDuplicateKeyQueryException
$ex
)
{
// If we've already noted that this activity is required, just move on.
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 10:08 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
74281
Default Alt Text
20180809.repo_identities.activity.php (573 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment