mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
26 lines
492 B
PHP
26 lines
492 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 = id(new PhabricatorRepositoryCommitData())->loadOneWhere(
|
||
|
'commitID = %d',
|
||
|
$commit->getID());
|
||
|
|
||
|
if (!$data) {
|
||
|
continue;
|
||
|
}
|
||
|
|
||
|
$commit->setSummary($data->getSummary());
|
||
|
$commit->save();
|
||
|
}
|
||
|
|
||
|
echo "Done.\n";
|