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
F14088659: D21316.id.diff
Sun, Nov 24, 5:26 AM
Unknown Object (File)
Tue, Nov 19, 6:00 AM
Unknown Object (File)
Thu, Nov 14, 5:41 AM
Unknown Object (File)
Thu, Nov 14, 3:37 AM
Unknown Object (File)
Thu, Nov 14, 3:01 AM
Unknown Object (File)
Thu, Nov 14, 2:12 AM
Unknown Object (File)
Tue, Nov 12, 1:59 PM
Unknown Object (File)
Tue, Nov 12, 11:50 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.