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)
Tue, Apr 16, 3:19 PM
Unknown Object (File)
Sat, Mar 30, 9:31 AM
Unknown Object (File)
Fri, Mar 29, 10:21 AM
Unknown Object (File)
Thu, Mar 28, 11:37 AM
Unknown Object (File)
Feb 19 2024, 11:34 PM
Unknown Object (File)
Feb 4 2024, 12:20 AM
Unknown Object (File)
Dec 15 2023, 11:56 AM
Unknown Object (File)
Nov 30 2023, 8:31 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
Branch
hg3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24629
Build 33953: Run Core Tests
Build 33952: arc lint + arc unit