Skip to content

Commit 2a1393c

Browse files
author
epriestley
committedJul 4, 2016
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
1 parent ccc7c1b commit 2a1393c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/applications/diffusion/conduit/DiffusionHistoryQueryConduitAPIMethod.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected function getMercurialResult(ConduitAPIRequest $request) {
173173
}
174174

175175
$hash_list = array_reverse($hash_list);
176-
$this->parents = $parent_map;
176+
$this->parents = array_reverse($parent_map, true);
177177

178178
return DiffusionQuery::loadHistoryForCommitIdentifiers(
179179
$hash_list,

0 commit comments

Comments
 (0)
Failed to load comments.