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
F18798016: D21344.id.diff
Fri, Oct 17, 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
F18101182: D21344.id.diff
Aug 9 2025, 12:21 PM
F18096598: D21344.id50812.diff
Aug 8 2025, 8:01 AM
F18083243: D21344.diff
Aug 5 2025, 9:26 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