mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +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
636 B
PHP
29 lines
636 B
PHP
<?php
|
|
|
|
echo pht('Migrating task dependencies to edges...')."\n";
|
|
$table = new ManiphestTask();
|
|
$table->openTransaction();
|
|
|
|
foreach (new LiskMigrationIterator($table) as $task) {
|
|
$id = $task->getID();
|
|
echo pht('Task %d: ', $id);
|
|
|
|
$deps = $task->getAttachedPHIDs(ManiphestTaskPHIDType::TYPECONST);
|
|
if (!$deps) {
|
|
echo "-\n";
|
|
continue;
|
|
}
|
|
|
|
$editor = new PhabricatorEdgeEditor();
|
|
foreach ($deps as $dep) {
|
|
$editor->addEdge(
|
|
$task->getPHID(),
|
|
ManiphestTaskDependsOnTaskEdgeType::EDGECONST,
|
|
$dep);
|
|
}
|
|
$editor->save();
|
|
echo pht('OKAY')."\n";
|
|
}
|
|
|
|
$table->saveTransaction();
|
|
echo pht('Done.')."\n";
|