[PATCH] chgserver: include [extdiff] in confighash

Jun Wu quark at fb.com
Fri Mar 11 08:00:50 EST 2016


# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1457701220 0
#      Fri Mar 11 13:00:20 2016 +0000
# Node ID fed30eaade617978d93c5fe186e907691d4e3500
# Parent  5021398417ed44f7d589879ff74ce9e9eaf20b5b
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.

diff --git a/hgext/chgserver.py b/hgext/chgserver.py
--- a/hgext/chgserver.py
+++ b/hgext/chgserver.py
@@ -77,7 +77,8 @@
     return util.sha1(str(items)).hexdigest()
 
 # sensitive config sections affecting confighash
-_configsections = ['extensions']
+# extdiff's uisetup will register new commands
+_configsections = ['extensions', 'extdiff']
 
 # sensitive environment variables affecting confighash
 _envre = re.compile(r'''\A(?:


More information about the Mercurial-devel mailing list