changeset 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 3fd94f603190
children 22c53b3a390d
files hgext/chgserver.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/chgserver.py	Sun May 08 10:43:41 2016 +0200
+++ b/hgext/chgserver.py	Sat May 07 14:51:32 2016 +0100
@@ -80,6 +80,7 @@
 
 # sensitive config sections affecting confighash
 _configsections = [
+    'alias',  # affects global state commands.table
     'extdiff',  # uisetup will register new commands
     'extensions',
 ]