chgserver: include [extdiff] in confighash
authorJun Wu <quark@fb.com>
Fri, 11 Mar 2016 13:00:20 +0000
changeset 28478 e6e183687545
parent 28477 194a6cd873cd
child 28479 d62b00318c19
chgserver: include [extdiff] in confighash extdiff's uisetup will register new commands. If we do not include it in confighash, changes to [extdiff] will not get new commands registered. This patch adds extdiff to confighash and makes it possible for chg to pass test-extdiff.t.
hgext/chgserver.py
--- a/hgext/chgserver.py	Fri Mar 11 02:52:06 2016 +0000
+++ b/hgext/chgserver.py	Fri Mar 11 13:00:20 2016 +0000
@@ -77,7 +77,10 @@
     return util.sha1(str(items)).hexdigest()
 
 # sensitive config sections affecting confighash
-_configsections = ['extensions']
+_configsections = [
+    'extdiff',  # uisetup will register new commands
+    'extensions',
+]
 
 # sensitive environment variables affecting confighash
 _envre = re.compile(r'''\A(?: