Page MenuHomePhabricator

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

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

Details

Reviewers
None
Group Reviewers
hg-reviewers
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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

marmoute created this revision.Tue, Jan 7, 6:04 AM
pulkit added a subscriber: pulkit.Wed, Jan 8, 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.Thu, Jan 9, 3:45 AM
marmoute updated this revision to Diff 19120.