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
Unknown Object (File)
Sun, Mar 24, 9:12 PM
Unknown Object (File)
Tue, Mar 19, 6:37 AM
Unknown Object (File)
Feb 22 2024, 8:04 PM
Unknown Object (File)
Feb 16 2024, 6:02 AM
Unknown Object (File)
Feb 14 2024, 12:37 PM
Unknown Object (File)
Feb 3 2024, 11:34 PM
Unknown Object (File)
Jan 23 2024, 7:16 AM
Unknown Object (File)
Jan 16 2024, 2:48 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.