Mercurial > public > src > rhodecode
diff pylons_app/lib/middleware/simplehg.py @ 350:4c9a295d80a4
added new command mappings for mercurial 1.6
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 01 Jul 2010 20:02:06 +0200 |
parents | c961b78ff0a0 |
children | a9a6c74ad2a6 |
line wrap: on
line diff
--- a/pylons_app/lib/middleware/simplehg.py Thu Jul 01 18:17:52 2010 +0200 +++ b/pylons_app/lib/middleware/simplehg.py Thu Jul 01 20:02:06 2010 +0200 @@ -149,12 +149,13 @@ Maps mercurial request commands into a pull or push command. @param environ: """ - mapping = { - 'changegroup': 'pull', - 'changegroupsubset': 'pull', - 'unbundle': 'push', - 'stream_out': 'pull', - } + mapping = {'changegroup': 'pull', + 'changegroupsubset': 'pull', + 'stream_out': 'pull', + 'listkeys': 'pull', + 'unbundle': 'push', + 'pushkey': 'push', } + for qry in environ['QUERY_STRING'].split('&'): if qry.startswith('cmd'): cmd = qry.split('=')[-1]