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
F15386284: D21316.id50779.diff
Sat, Mar 15, 12:17 AM
F15381871: D21316.id50779.diff
Fri, Mar 14, 9:42 AM
F15378785: D21316.diff
Thu, Mar 13, 5:01 PM
F15332728: D21316.diff
Fri, Mar 7, 7:40 PM
Unknown Object (File)
Feb 13 2025, 2:14 AM
Unknown Object (File)
Feb 13 2025, 2:13 AM
Unknown Object (File)
Feb 13 2025, 2:13 AM
Unknown Object (File)
Feb 11 2025, 10:25 AM
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.