Patchwork [1,of,8] chgserver: add fastannotate config section to sensitive list

login
register
mail settings
Submitter Pulkit Goyal
Date March 26, 2020, 7:36 a.m.
Message ID <84234f1631ab94a978d8.1585208208@workspace>
Download mbox | patch
Permalink /patch/45896/
State Accepted
Headers show

Comments

Pulkit Goyal - March 26, 2020, 7:36 a.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1584977814 -19800
#      Mon Mar 23 21:06:54 2020 +0530
# Node ID 84234f1631ab94a978d8b020677b5bba3e39a9f6
# Parent  b0928d1a5c499e34c034edbe56b20679146cd03c
# EXP-Topic chg-test
chgserver: add fastannotate config section to sensitive list

Depending on the config value of `fastannotate.modes`, the fastannotate
extension can do different things in uisetup. Depending on value of
`fastannotate.server`, it can register new wireprotocol capabilities.

This fixes test-fastannotate-hg.t, test-fastannotate-protocol.t and
test-fastannotate.t with chg.
Yuya Nishihara - March 26, 2020, 11:34 a.m.
On Thu, 26 Mar 2020 13:06:48 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit@gmail.com>
> # Date 1584977814 -19800
> #      Mon Mar 23 21:06:54 2020 +0530
> # Node ID 84234f1631ab94a978d8b020677b5bba3e39a9f6
> # Parent  b0928d1a5c499e34c034edbe56b20679146cd03c
> # EXP-Topic chg-test
> chgserver: add fastannotate config section to sensitive list

Queued, thanks.

Patch

diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -83,6 +83,7 @@  def _hashlist(items):
     b'eol',  # uses setconfig('eol', ...)
     b'extdiff',  # uisetup will register new commands
     b'extensions',
+    b'fastannotate',  # affects annotate command and adds fastannonate cmd
     b'schemes',  # extsetup will update global hg.schemes
 ]