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
F13262011: D21316.diff
Mon, May 27, 1:41 AM
F13255375: D21316.diff
Sat, May 25, 4:43 AM
F13238634: D21316.diff
Tue, May 21, 8:33 PM
F13228920: D21316.id.diff
Mon, May 20, 1:19 PM
F13219899: D21316.id50779.diff
Sat, May 18, 9:46 PM
F13211548: D21316.diff
Fri, May 17, 5:52 AM
F13196774: D21316.diff
Sun, May 12, 11:33 PM
Unknown Object (File)
May 3 2024, 7:02 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
Branch
land13
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24566
Build 33861: Run Core Tests
Build 33860: arc lint + arc unit

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.