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
F15575885: D21344.id.diff
Tue, May 6, 7:26 AM
F15574092: D21344.id50808.diff
Mon, May 5, 11:35 PM
F15544188: D21344.id50812.diff
Sat, Apr 26, 3:27 AM
F15530723: D21344.diff
Wed, Apr 23, 7:03 AM
F15520269: D21344.id50812.diff
Sun, Apr 20, 5:08 AM
F15486154: D21344.diff
Thu, Apr 10, 5:20 AM
F15484522: D21344.diff
Apr 9 2025, 6:46 PM
F15479975: D21344.id50808.diff
Apr 8 2025, 10:34 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