eol: make [eol] config section sensitive for chg confighash
authorJun Wu <quark@fb.com>
Mon, 02 Oct 2017 19:25:11 -0700
changeset 34485 37b7581e5737
parent 34484 a8a9c0d3232b
child 34486 a57c938e7ac8
eol: make [eol] config section sensitive for chg confighash The eol extension may mangle the [eol] config section and that means chg is unable to detect config file change (because it re-applies setconfig changes). This makes test-eol.t pass with chg. Differential Revision: https://phab.mercurial-scm.org/D917
mercurial/chgserver.py
--- a/mercurial/chgserver.py	Mon Oct 02 16:48:58 2017 -0700
+++ b/mercurial/chgserver.py	Mon Oct 02 19:25:11 2017 -0700
@@ -68,6 +68,7 @@
 # sensitive config sections affecting confighash
 _configsections = [
     'alias',  # affects global state commands.table
+    'eol',    # uses setconfig('eol', ...)
     'extdiff',  # uisetup will register new commands
     'extensions',
 ]