Page MenuHomePhabricator

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

Authored by epriestley on Jun 5 2020, 10:30 PM.



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

rARC Arcanist
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

epriestley created this revision.Jun 5 2020, 10:30 PM
epriestley requested review of this revision.Jun 5 2020, 10:31 PM
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.