# HG changeset patch # User Marcin Kuzminski # Date 2010-07-01 18:02:06 # Node ID 4c9a295d80a4e86c377192824b281996e357880a # Parent aafd9a98ea58d88f9fc03a58a7baf7363d53cd69 added new command mappings for mercurial 1.6 diff --git a/pylons_app/lib/middleware/simplehg.py b/pylons_app/lib/middleware/simplehg.py --- a/pylons_app/lib/middleware/simplehg.py +++ b/pylons_app/lib/middleware/simplehg.py @@ -149,12 +149,13 @@ class SimpleHg(object): 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]