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 |
' |
|
154 | 'stream_out': 'pull', | |
155 |
' |
|
155 | 'listkeys': 'pull', | |
156 |
' |
|
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