This is an archive of the discontinued Mercurial Phabricator instance.

hgrc: introduce HGRCSKIPREPO to skip reading the repository's hgrc
ClosedPublic

Authored by marmoute on Jan 7 2020, 6:04 AM.

Details

Summary

We had a way to change the behavior regarding reading the global and user
config, but we had nothing regarding the repository hgrc itself.

This option is useful in situation where scripts need to be able to work around
strange configuration set by the user in his repository. (and were HGPLAIN is
not enough).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Jan 7 2020, 6:04 AM
pulkit added a subscriber: pulkit.Jan 8 2020, 6:54 AM

hgrc: introduce HGRCSKIPREPO to skip reading the hgrc's repository

s/ hgrc's repository/repository's hgrc

durin42 added inline comments.
mercurial/helptext/scripting.txt
80

Awkward. Maybe:

Note that not reading the repository's configuration is likely to have unintended consequences, as the repository config files can define things like extensions that are required for access to the repository.

(I don't love that either. Maybe @krbullock has an idea?)

marmoute retitled this revision from hgrc: introduce HGRCSKIPREPO to skip reading the hgrc's repository to hgrc: introduce HGRCSKIPREPO to skip reading the repository's hgrc.Jan 9 2020, 3:45 AM
marmoute updated this revision to Diff 19120.
pulkit accepted this revision.Jan 21 2020, 11:05 AM
This revision is now accepted and ready to land.Jan 21 2020, 11:05 AM