mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 23:40:57 +01:00
Update "phabricator/" for "topological" API changes
Summary: Ref T13325. Test Plan: - Grepped for `topograph`. - Viewed a task graph since that's easy, looked fine. Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13325 Differential Revision: https://secure.phabricator.com/D20599
This commit is contained in:
parent
53f8ad14fa
commit
c0dc411d23
3 changed files with 4 additions and 5 deletions
|
@ -25,8 +25,7 @@ final class HarbormasterBuildGraph extends AbstractDirectedGraph {
|
|||
$graph = id(new HarbormasterBuildGraph($steps_by_phid))
|
||||
->addNodes($step_phids);
|
||||
|
||||
$raw_results =
|
||||
$graph->getBestEffortTopographicallySortedNodes();
|
||||
$raw_results = $graph->getNodesInRoughTopologicalOrder();
|
||||
|
||||
$results = array();
|
||||
foreach ($raw_results as $node) {
|
||||
|
|
|
@ -398,7 +398,7 @@ final class PhabricatorRepositoryDiscoveryEngine
|
|||
}
|
||||
}
|
||||
|
||||
// Now, sort them topographically.
|
||||
// Now, sort them topologically.
|
||||
$commits = $this->reduceGraph($graph);
|
||||
|
||||
$refs = array();
|
||||
|
@ -437,7 +437,7 @@ final class PhabricatorRepositoryDiscoveryEngine
|
|||
$graph = new PhutilDirectedScalarGraph();
|
||||
$graph->addNodes($edges);
|
||||
|
||||
$commits = $graph->getTopographicallySortedNodes();
|
||||
$commits = $graph->getNodesInTopologicalOrder();
|
||||
|
||||
// NOTE: We want the most ancestral nodes first, so we need to reverse the
|
||||
// list we get out of AbstractDirectedGraph.
|
||||
|
|
|
@ -189,7 +189,7 @@ abstract class PhabricatorObjectGraph
|
|||
|
||||
$order = id(new PhutilDirectedScalarGraph())
|
||||
->addNodes($ancestry)
|
||||
->getTopographicallySortedNodes();
|
||||
->getNodesInTopologicalOrder();
|
||||
|
||||
$ancestry = array_select_keys($ancestry, $order);
|
||||
|
||||
|
|
Loading…
Reference in a new issue