Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104555624
20180809.repo_identities.activity.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
Mon, Mar 10, 10:40
Size
573 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 10:40 (2 d)
Engine
blob
Format
Raw Data
Handle
24807353
Attached To
rPH Phabricator
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.
}
Event Timeline
Log In to Comment