Page MenuHomePhabricator

Provide a more powerful query mechanism for "markers" (branches/bookmarks)
ClosedPublic

Authored by epriestley on Jun 8 2020, 5:30 PM.
Tags
None
Referenced Files
F13245232: D21333.diff
Thu, May 23, 5:52 AM
F13240943: D21333.diff
Wed, May 22, 6:02 PM
F13238639: D21333.diff
Tue, May 21, 8:34 PM
F13231115: D21333.id50798.diff
Tue, May 21, 12:12 AM
F13228089: D21333.id.diff
Mon, May 20, 6:58 AM
F13195498: D21333.diff
Sun, May 12, 10:26 PM
F13179556: D21333.diff
Wed, May 8, 9:16 PM
Unknown Object (File)
Sat, May 4, 6:51 PM
Subscribers
None

Details

Summary

Ref T13546. Various Arcanist workflows, and particularly the MercurialAPI, currently repeat quite a lot of code around parsing branches and bookmarks.

In modern Mercurial, we can generally use the "head()" and "bookmark()" revsets to do this fairly sensibly.

This change mostly adds more code (and introduces "arc bookmarks" and "arc branches" as replacements for "arc bookmark" and "arc branch") but followups should be able to mostly delete code.

Test Plan

Ran "arc branches" and "arc bookmarks" in Git and Mercurial.

Diff Detail

Repository
rARC Arcanist
Branch
land27
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24586
Build 33898: Run Core Tests
Build 33897: arc lint + arc unit

Event Timeline

  • Improve Mercurial behavior for figuring out which branch head is active.
This revision was not accepted when it landed; it landed in state Needs Review.Jun 8 2020, 11:27 PM
This revision was automatically updated to reflect the committed changes.