--- a/mercurial/hgweb/hgweb_mod.py Tue Feb 20 19:09:01 2018 -0800
+++ b/mercurial/hgweb/hgweb_mod.py Tue Feb 20 18:53:39 2018 -0800
@@ -36,6 +36,7 @@
templater,
ui as uimod,
util,
+ wireproto,
)
from . import (
@@ -45,15 +46,8 @@
wsgicgi,
)
-perms = {
- 'changegroup': 'pull',
- 'changegroupsubset': 'pull',
- 'getbundle': 'pull',
- 'stream_out': 'pull',
- 'listkeys': 'pull',
- 'unbundle': 'push',
- 'pushkey': 'push',
-}
+# Aliased for API compatibility.
+perms = wireproto.permissions
archivespecs = util.sortdict((
('zip', ('application/zip', 'zip', '.zip', None)),