This is an archive of the discontinued Mercurial Phabricator instance.

hook: set `HGPLAIN=1` for external hooks
ClosedPublic

Authored by mharbison72 on Dec 14 2020, 7:37 PM.

Details

Summary

External hooks will probably turn around and run hg commands, so this seems like
a reasonable convenience for people who miss it in the documentation.

There are no test changes because printenv.py filters out anything without a
"HG_" prefix. It wouldn't be a useful test anyway, because this is already
inherited from the test environment.

Diff Detail

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

Event Timeline

mharbison72 created this revision.Dec 14 2020, 7:37 PM
pulkit accepted this revision.Dec 17 2020, 5:53 AM
pulkit added a subscriber: pulkit.

Probably we should mention about in relnotes?

This revision is now accepted and ready to land.Dec 17 2020, 5:53 AM
This revision was automatically updated to reflect the committed changes.

Probably we should mention about in relnotes?

Oops, I meant to do that. Added in D9629.