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
F18756216: D21333.id50763.diff
Sun, Oct 5, 10:10 AM
F18752763: D21333.id50798.diff
Sat, Oct 4, 4:19 PM
F18745795: D21333.id.diff
Fri, Oct 3, 9:26 AM
F18736691: D21333.diff
Wed, Oct 1, 7:13 AM
F18657309: D21333.id50764.diff
Tue, Sep 23, 1:17 AM
F18620273: D21333.diff
Sep 15 2025, 4:44 AM
F18466409: D21333.id.diff
Sep 2 2025, 9:44 AM
F18433010: D21333.diff
Aug 31 2025, 7:16 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.