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
F15415189: D21344.id50812.diff
Thu, Mar 20, 4:43 AM
F15379473: D21344.id.diff
Thu, Mar 13, 9:24 PM
F15377951: D21344.diff
Thu, Mar 13, 11:36 AM
Unknown Object (File)
Sun, Feb 23, 11:31 PM
Unknown Object (File)
Fri, Feb 21, 6:16 AM
Unknown Object (File)
Fri, Feb 21, 5:48 AM
Unknown Object (File)
Feb 19 2025, 11:52 PM
Unknown Object (File)
Feb 12 2025, 12:03 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