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)
Sat, Apr 13, 4:42 AM
Unknown Object (File)
Thu, Apr 11, 8:54 AM
Unknown Object (File)
Fri, Mar 29, 7:36 PM
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
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.