Page MenuHomePhabricator

Disambiguate various types of Mercurial remote markers with "hg arc-ls-remote"
ClosedPublic

Authored by epriestley on Jun 9 2020, 5:27 PM.
Tags
None
Referenced Files
F15544195: D21343.id50814.diff
Sat, Apr 26, 3:31 AM
F15543929: D21343.id50807.diff
Sat, Apr 26, 1:52 AM
F15535278: D21343.id.diff
Thu, Apr 24, 4:21 AM
F15530440: D21343.diff
Wed, Apr 23, 3:49 AM
F15474376: D21343.id50807.diff
Apr 6 2025, 8:07 AM
F15436699: D21343.id50807.diff
Mar 25 2025, 4:03 PM
F15435518: D21343.diff
Mar 25 2025, 8:43 AM
F15430039: D21343.id.diff
Mar 24 2025, 5:23 AM
Subscribers
None

Details

Summary

Ref T13546. Ref T9948. It seems challenging to examine a remote in vanilla Mercurial. Provide an "hg arc-ls-remote" command which functions like "git ls-remote" so we can figure out if "--into X" is a bookmark, branch, both, neither, or a branch with multiple heads without mutating the working copy as a side effect.

Test Plan

Ran various "arc land --into ..." commands in a Mercurial working copy, saw apparently-sensible resolution of remote marker names.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable