comparison hgext/chgserver.py @ 29101:57a24a85a2bc

chgserver: add [alias] to confighash The [alias] config section affects a global state: commands.table. It's hard to trace whether an alias is added by a config option or an extension, and add/remove aliases in a safe way per chg request. It will hurt performance a bit if we clean the table and parse aliases every time. Therefore let's just add it to confighash. This will make chg pass test-pager.t.
author Jun Wu <quark@fb.com>
date Sat, 07 May 2016 14:51:32 +0100
parents 983353035cec
children 0d83ad967bf8
comparison
equal deleted inserted replaced
29100:3fd94f603190 29101:57a24a85a2bc
78 """return sha1 hexdigest for a list""" 78 """return sha1 hexdigest for a list"""
79 return util.sha1(str(items)).hexdigest() 79 return util.sha1(str(items)).hexdigest()
80 80
81 # sensitive config sections affecting confighash 81 # sensitive config sections affecting confighash
82 _configsections = [ 82 _configsections = [
83 'alias', # affects global state commands.table
83 'extdiff', # uisetup will register new commands 84 'extdiff', # uisetup will register new commands
84 'extensions', 85 'extensions',
85 ] 86 ]
86 87
87 # sensitive environment variables affecting confighash 88 # sensitive environment variables affecting confighash