[PATCH] chgserver: include [extdiff] in confighash

Yuya Nishihara yuya at tcha.org
Fri Mar 11 11:13:38 EST 2016


On Fri, 11 Mar 2016 13:00:50 +0000, Jun Wu wrote:
> # 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']

I've reformatted this to list an item per line, and will push to the
clowncopter, thanks.

Let's revisit the story about 3rd-party extensions after we can make it pass
tests with --chg.


More information about the Mercurial-devel mailing list