--- a/hgext/simple4server.py Wed Mar 05 19:08:58 2014 -0800
+++ b/hgext/simple4server.py Thu Mar 06 12:15:04 2014 -0800
@@ -17,6 +17,7 @@
from mercurial import obsolete
from cStringIO import StringIO
from mercurial import node
+from mercurial.hgweb import hgweb_mod
_pack = struct.pack
def srv_pushobsmarkers(repo, proto):
@@ -178,6 +179,9 @@
def extsetup(ui):
obsolete.obsstore = pruneobsstore
obsolete.obsstore.relevantmarkers = relevantmarkers
+ hgweb_mod.perms['evoext_pushobsmarkers_0'] = 'push'
+ hgweb_mod.perms['evoext_pullobsmarkers_0'] = 'pull'
+ hgweb_mod.perms['evoext_obshash'] = 'pull'
wireproto.commands['evoext_pushobsmarkers_0'] = (srv_pushobsmarkers, '')
wireproto.commands['evoext_pullobsmarkers_0'] = (srv_pullobsmarkers, '*')
extensions.wrapfunction(wireproto, 'capabilities', capabilities)