Page MenuHomePhabricator

Pass HGPLAIN in the environment when testing "hg" version
ClosedPublic

Authored by epriestley on Sep 15 2017, 12:43 PM.
Tags
None
Referenced Files
F19089758: D18610.id.diff
Dec 3 2025, 8:29 AM
F19087245: D18610.diff
Dec 3 2025, 12:07 AM
F18858909: D18610.diff
Nov 1 2025, 11:27 PM
F18782463: D18610.id44680.diff
Oct 13 2025, 1:39 AM
F18741085: D18610.id.diff
Oct 2 2025, 8:29 AM
F18739959: D18610.diff
Oct 1 2025, 11:41 PM
F18622787: D18610.diff
Sep 15 2025, 1:00 PM
F18509112: D18610.id.diff
Sep 5 2025, 3:13 AM
Subscribers
None

Details

Summary

See T12972. In Phabricator, we always execute with HGPLAIN but this didn't make it into the standalone binary analyzer:

https://secure.phabricator.com/source/phabricator/browse/master/src/applications/diffusion/protocol/DiffusionMercurialCommandEngine.php;c71cb944a42851de00b2129f15899f7681b0f7ed$31

HGPLAIN disables translations and extensions which may make hg version do something unexpected.

Test Plan

Verified my local version of Mercurial is still identified correctly in Config. I have yet to figure out how to install non-English Mercurial so I didn't truly test this, but our use of HGPLAIN in other contexts is well-established.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable