mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 05:02:44 +01:00
36e2d02d6e
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
29 lines
669 B
PHP
29 lines
669 B
PHP
<?php
|
|
|
|
echo pht('Migrating differential dependencies to edges...')."\n";
|
|
$table = new DifferentialRevision();
|
|
$table->openTransaction();
|
|
|
|
foreach (new LiskMigrationIterator($table) as $rev) {
|
|
$id = $rev->getID();
|
|
echo pht('Revision %d: ', $id);
|
|
|
|
$deps = $rev->getAttachedPHIDs(DifferentialRevisionPHIDType::TYPECONST);
|
|
if (!$deps) {
|
|
echo "-\n";
|
|
continue;
|
|
}
|
|
|
|
$editor = new PhabricatorEdgeEditor();
|
|
foreach ($deps as $dep) {
|
|
$editor->addEdge(
|
|
$rev->getPHID(),
|
|
DifferentialRevisionDependsOnRevisionEdgeType::EDGECONST,
|
|
$dep);
|
|
}
|
|
$editor->save();
|
|
echo pht('OKAY')."\n";
|
|
}
|
|
|
|
$table->saveTransaction();
|
|
echo pht('Done.')."\n";
|