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
Unknown Object (File)
Sat, Jul 5, 11:58 AM
Unknown Object (File)
Thu, Jul 3, 10:22 AM
Unknown Object (File)
Thu, Jul 3, 7:53 AM
Unknown Object (File)
Sun, Jun 29, 6:17 PM
Unknown Object (File)
Sat, Jun 28, 2:41 PM
Unknown Object (File)
Jun 6 2025, 3:07 PM
Unknown Object (File)
Jun 5 2025, 4:59 PM
Unknown Object (File)
Jun 4 2025, 9:19 PM
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