mercurial/wireprotov2server.py
changeset 41845 d6569f1e9b37
parent 41425 e82288a9556c
child 42790 da643cadec90
--- a/mercurial/wireprotov2server.py	Sat Mar 02 05:24:35 2019 +0530
+++ b/mercurial/wireprotov2server.py	Tue Feb 12 19:08:17 2019 +0100
@@ -342,7 +342,8 @@
                                      action)
 
 def getdispatchrepo(repo, proto, command):
-    return repo.filtered('served')
+    viewconfig = repo.ui.config('server', 'view')
+    return repo.filtered(viewconfig)
 
 def dispatch(repo, proto, command, redirect):
     """Run a wire protocol command.