Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106830951
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
Tue, Apr 1, 06:27
Size
573 B
Mime Type
text/x-php
Expires
Thu, Apr 3, 06:27 (2 d)
Engine
blob
Format
Raw Data
Handle
25284357
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