1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 18:10:53 +01:00
phorge-phorge/resources/sql/patches/20130219.commitsummarymig.php

26 lines
477 B
PHP
Raw Normal View History

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