--- a/mercurial/wireprotov1server.py Sat Mar 02 05:24:35 2019 +0530
+++ b/mercurial/wireprotov1server.py Tue Feb 12 19:08:17 2019 +0100
@@ -64,7 +64,8 @@
extensions that need commands to operate on different repo views under
specialized circumstances.
"""
- return repo.filtered('served')
+ viewconfig = repo.ui.config('server', 'view')
+ return repo.filtered(viewconfig)
def dispatch(repo, proto, command):
repo = getdispatchrepo(repo, proto, command)
@@ -166,7 +167,6 @@
@wireprotocommand('batch', 'cmds *', permission='pull')
def batch(repo, proto, cmds, others):
unescapearg = wireprototypes.unescapebatcharg
- repo = repo.filtered("served")
res = []
for pair in cmds.split(';'):
op, args = pair.split(' ', 1)