comparison mercurial/hgweb/hgweb_mod.py @ 11370:db3f6f0e4e7d

pushkey: add http support pushkey requires the same permissions as push listitems requires the same permissions as pull
author Matt Mackall <mpm@selenic.com>
date Wed, 16 Jun 2010 16:05:19 -0500
parents 5efbfa662b3c
children 26c7d4fc31bf a72c5ff1260c
comparison
equal deleted inserted replaced
11369:02a4373ca5cd 11370:db3f6f0e4e7d
14 import webcommands, protocol, webutil 14 import webcommands, protocol, webutil
15 15
16 perms = { 16 perms = {
17 'changegroup': 'pull', 17 'changegroup': 'pull',
18 'changegroupsubset': 'pull', 18 'changegroupsubset': 'pull',
19 'stream_out': 'pull',
20 'listkeys': 'pull',
19 'unbundle': 'push', 21 'unbundle': 'push',
20 'stream_out': 'pull', 22 'pushkey': 'push',
21 } 23 }
22 24
23 class hgweb(object): 25 class hgweb(object):
24 def __init__(self, repo, name=None, baseui=None): 26 def __init__(self, repo, name=None, baseui=None):
25 if isinstance(repo, str): 27 if isinstance(repo, str):