comparison hgext/chgserver.py @ 28478:e6e183687545

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.
author Jun Wu <quark@fb.com>
date Fri, 11 Mar 2016 13:00:20 +0000
parents 8062869860b8
children 945e9516b435
comparison
equal deleted inserted replaced
28477:194a6cd873cd 28478:e6e183687545
75 def _hashlist(items): 75 def _hashlist(items):
76 """return sha1 hexdigest for a list""" 76 """return sha1 hexdigest for a list"""
77 return util.sha1(str(items)).hexdigest() 77 return util.sha1(str(items)).hexdigest()
78 78
79 # sensitive config sections affecting confighash 79 # sensitive config sections affecting confighash
80 _configsections = ['extensions'] 80 _configsections = [
81 'extdiff', # uisetup will register new commands
82 'extensions',
83 ]
81 84
82 # sensitive environment variables affecting confighash 85 # sensitive environment variables affecting confighash
83 _envre = re.compile(r'''\A(?: 86 _envre = re.compile(r'''\A(?:
84 CHGHG 87 CHGHG
85 |HG.* 88 |HG.*