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
F15399262: D21343.id50814.diff
Mon, Mar 17, 3:39 AM
F15386044: D21343.id50807.diff
Fri, Mar 14, 11:56 PM
F15354442: D21343.id50814.diff
Tue, Mar 11, 4:00 AM
F15334225: D21343.diff
Sat, Mar 8, 7:40 AM
Unknown Object (File)
Sat, Mar 1, 5:23 PM
Unknown Object (File)
Thu, Feb 27, 11:36 PM
Unknown Object (File)
Mon, Feb 24, 4:59 AM
Unknown Object (File)
Sun, Feb 23, 9:57 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