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
F21345235: D21343.id50807.diff
Fri, Jul 10, 9:49 PM
F21345227: D21343.id50807.diff
Fri, Jul 10, 9:48 PM
Unknown Object (File)
Tue, Jul 7, 5:39 PM
Unknown Object (File)
Fri, Jun 26, 4:51 AM
Unknown Object (File)
Tue, Jun 23, 11:04 AM
Unknown Object (File)
Mon, Jun 22, 11:46 AM
Unknown Object (File)
Fri, Jun 19, 4:42 PM
Unknown Object (File)
Thu, Jun 18, 12:13 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