mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
8fcf4d5ac3
Test Plan: Ran it on test DB. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5061
25 lines
477 B
PHP
25 lines
477 B
PHP
<?php
|
|
|
|
echo "Backfilling commit summaries...\n";
|
|
|
|
$commits = new LiskMigrationIterator(new PhabricatorRepositoryCommit());
|
|
foreach ($commits as $commit) {
|
|
echo 'Filling Commit #'.$commit->getID()."\n";
|
|
|
|
if (strlen($commit->getSummary())) {
|
|
continue;
|
|
}
|
|
|
|
$data = $commit->loadOneRelative(
|
|
new PhabricatorRepositoryCommitData(),
|
|
'commitID');
|
|
|
|
if (!$data) {
|
|
continue;
|
|
}
|
|
|
|
$commit->setSummary($data->getSummary());
|
|
$commit->save();
|
|
}
|
|
|
|
echo "Done.\n";
|