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
F13151384: D21344.diff
Sat, May 4, 6:31 PM
F13148196: D21344.id50812.diff
Fri, May 3, 9:38 PM
Unknown Object (File)
Wed, Apr 24, 11:43 PM
Unknown Object (File)
Sat, Apr 20, 5:20 PM
Unknown Object (File)
Fri, Apr 19, 8:57 PM
Unknown Object (File)
Tue, Apr 16, 3:19 PM
Unknown Object (File)
Mar 30 2024, 9:31 AM
Unknown Object (File)
Mar 29 2024, 10:21 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