1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00

Fix impropery history graph trace in Mercurial

Summary: Fixes T11267. This data was coming back weird (in reverse order relative to the graph itself). Previously it worked OK anyway, but the new logic is a little more sensitive to the input.

Test Plan: Viewed a Mercurial repository with linear history, saw linear history.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11267

Differential Revision: https://secure.phabricator.com/D16229
This commit is contained in:
epriestley 2016-07-04 10:20:56 -07:00
parent ccc7c1b424
commit 2a1393c008

View file

@ -173,7 +173,7 @@ final class DiffusionHistoryQueryConduitAPIMethod
}
$hash_list = array_reverse($hash_list);
$this->parents = $parent_map;
$this->parents = array_reverse($parent_map, true);
return DiffusionQuery::loadHistoryForCommitIdentifiers(
$hash_list,