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
F14092968: D21344.id50812.diff
Mon, Nov 25, 8:47 AM
Unknown Object (File)
Fri, Nov 22, 4:17 AM
Unknown Object (File)
Thu, Nov 21, 5:42 AM
Unknown Object (File)
Wed, Nov 20, 7:14 AM
Unknown Object (File)
Sun, Nov 17, 12:51 AM
Unknown Object (File)
Sat, Nov 16, 3:14 PM
Unknown Object (File)
Thu, Nov 14, 2:15 AM
Unknown Object (File)
Oct 15 2024, 4:19 PM
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