Page MenuHomePhorge

20180809.repo_identities.activity.php
No OneTemporary

Size
573 B
Referenced Files
None
Subscribers
None

20180809.repo_identities.activity.php

<?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

Mime Type
text/x-php
Expires
Mon, May 5, 10:08 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
74281
Default Alt Text
20180809.repo_identities.activity.php (573 B)

Event Timeline