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
F18754725: D21343.id.diff
Sun, Oct 5, 12:53 AM
F18738934: D21343.id50807.diff
Wed, Oct 1, 6:28 PM
F18722128: D21343.id50807.diff
Mon, Sep 29, 10:12 PM
F18714078: D21343.diff
Mon, Sep 29, 7:11 AM
F18712052: D21343.id50807.diff
Mon, Sep 29, 5:15 AM
F18706071: D21343.id50814.diff
Sun, Sep 28, 3:08 PM
F18705748: D21343.diff
Sun, Sep 28, 12:55 PM
F18673483: D21343.id50814.diff
Thu, Sep 25, 10:48 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