##// END OF EJS Templates
added new command mappings for mercurial 1.6
marcink -
r330:4c9a295d default
parent child Browse files
Show More
@@ -149,12 +149,13 b' class SimpleHg(object):'
149 Maps mercurial request commands into a pull or push command.
149 Maps mercurial request commands into a pull or push command.
150 @param environ:
150 @param environ:
151 """
151 """
152 mapping = {
152 mapping = {'changegroup': 'pull',
153 'changegroup': 'pull',
153 'changegroupsubset': 'pull',
154 'changegroupsubset': 'pull',
154 'stream_out': 'pull',
155 'unbundle': 'push',
155 'listkeys': 'pull',
156 'stream_out': 'pull',
156 'unbundle': 'push',
157 }
157 'pushkey': 'push', }
158
158 for qry in environ['QUERY_STRING'].split('&'):
159 for qry in environ['QUERY_STRING'].split('&'):
159 if qry.startswith('cmd'):
160 if qry.startswith('cmd'):
160 cmd = qry.split('=')[-1]
161 cmd = qry.split('=')[-1]
General Comments 0
You need to be logged in to leave comments. Login now