This is an archive of the discontinued Mercurial Phabricator instance.

procutil: add a way to unset and environment variable
AbandonedPublic

Authored by marmoute on Feb 10 2021, 6:47 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

The only way to not get the HGPLAIN behavior, is to not have the variable set at
all. Having it set with -any- value will trigger the behavior.

Currently the procutil utility used to spawn the hook have no way to unset an
environment variable. So we start with adding one such way before we can
proceed.

Diff Detail

Repository
rHG Mercurial
Branch
stable
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

marmoute created this revision.Feb 10 2021, 6:47 PM
baymax updated this revision to Diff 25542.Feb 10 2021, 8:11 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

marmoute abandoned this revision.

@joerg.sonnenberger pointed out that using empy value unset the variable, so I am dropping that specific commit. Update to the other one coming.