Page MenuHomePhabricator

Fix Mercurial commit history ordering
ClosedPublic

Authored by epriestley on Dec 5 2017, 1:38 PM.
Tags
None
Referenced Files
F19923308: D18817.id45152.diff
Tue, Apr 7, 2:23 AM
F19910677: D18817.diff
Thu, Apr 2, 9:13 AM
F19909981: D18817.id.diff
Thu, Apr 2, 3:39 AM
F19902459: D18817.id.diff
Mon, Mar 30, 7:30 PM
F19896938: D18817.diff
Sun, Mar 29, 5:47 AM
F19785878: D18817.id45157.diff
Feb 25 2026, 1:58 AM
F19609685: D18817.id45152.diff
Feb 3 2026, 1:52 PM
F19607358: D18817.id.diff
Feb 3 2026, 11:03 AM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/diffusion-observed-mercurial-repository-history-broken/825.

In D18769, I rewrote this from using the --branch flag (which is unsafe and does not function on branches named --config=x.y and such).

However, this rewrite accidentally changed the result order, which impacted Mercurial commit hisotry lists and graphs. Swap the order of the constraints so we get newest-to-oldest again, as expected.

Test Plan

Viewed a Mercurial repository's history graph, saw sensible chronology after the patch.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable