Page MenuHomePhabricator

In "arc land" in Mercurial, show a tidier "ls-remote" command
ClosedPublic

Authored by epriestley on Jun 10 2020, 3:30 PM.
Tags
None
Referenced Files
F19508080: D21344.diff
Sat, Jan 10, 1:03 AM
F18872486: D21344.diff
Nov 5 2025, 4:42 AM
F18871848: D21344.id50812.diff
Nov 5 2025, 12:52 AM
F18798016: D21344.id.diff
Oct 17 2025, 5:45 AM
F18738733: D21344.diff
Oct 1 2025, 4:49 PM
F18738253: D21344.id50808.diff
Oct 1 2025, 2:54 PM
F18650418: D21344.diff
Sep 21 2025, 12:41 AM
F18589324: D21344.id.diff
Sep 12 2025, 3:06 AM
Subscribers
None

Details

Summary

Ref T9948. Ref T13546. We must passthru "hg ls-remote" because it might prompt the user for credentials.

Since "ls-remote" is implemented as an exension and we can't rely on using stdout beacuse of passthru, the actual command we execute is:

$ hg --config extensions.arc-hg=<huge long path to extension> arc-ls-remote --output <huge long path to temporary file> -- remote

This is meaningless and distracting; show the intent of the command we're executing instead. Users can see the raw command in "--trace" if they're actually debugging behavior.

Test Plan

Ran "arc land" in a Mercurial repository, got a tidier command output.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable