Page MenuHomePhabricator

In "arc branch" output, sort branches updated in the same second by name
ClosedPublic

Authored by epriestley on Jun 5 2020, 10:30 PM.
Tags
None
Referenced Files
F19038107: D21316.id.diff
Nov 26 2025, 2:22 AM
F18978251: D21316.diff
Nov 16 2025, 7:31 PM
F18742431: D21316.id.diff
Oct 2 2025, 7:13 PM
F18739157: D21316.diff
Oct 1 2025, 8:07 PM
F18675794: D21316.diff
Sep 25 2025, 6:23 PM
F18642085: D21316.diff
Sep 18 2025, 10:24 PM
F18198701: D21316.diff
Aug 18 2025, 1:10 AM
F18102734: D21316.id50744.diff
Aug 9 2025, 11:02 PM
Subscribers
None

Details

Summary

Ref T13546. The new "arc land" workflow can rebase several branches per second. With branches like "feature1", "feature2", etc., this leads to out-of-order listing in "arc branch".

When two branches would otherwise sort to the same position, sort them by name.

Test Plan

Ran "arc branch" after a cascading rebase by "arc land", saw "land5", "land7", "land8", etc., instead of an arbitrary order.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 8 2020, 11:04 PM
This revision was automatically updated to reflect the committed changes.