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
Unknown Object (File)
Jul 10 2026, 9:12 AM
Unknown Object (File)
Jun 18 2026, 12:13 AM
Unknown Object (File)
Apr 14 2026, 11:36 PM
Unknown Object (File)
Apr 1 2026, 9:36 PM
Unknown Object (File)
Mar 7 2026, 8:48 AM
Unknown Object (File)
Feb 20 2026, 6:54 PM
Unknown Object (File)
Feb 3 2026, 8:06 PM
Unknown Object (File)
Jan 20 2026, 1:35 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