Show More
@@ -141,15 +141,16 b' class hgweb(object):' | |||||
141 | else: |
|
141 | else: | |
142 | cmd = '' |
|
142 | cmd = '' | |
143 |
|
143 | |||
144 |
if |
|
144 | if cmd == 'static': | |
145 |
|
|
145 | req.form['file'] = ['/'.join(args)] | |
146 | req.form['node'] = [node] |
|
146 | else: | |
147 | if args: |
|
147 | if args and args[0]: | |
148 |
|
|
148 | node = args.pop(0) | |
|
149 | req.form['node'] = [node] | |||
|
150 | if args: | |||
|
151 | req.form['file'] = args | |||
149 |
|
152 | |||
150 |
if cmd == ' |
|
153 | if cmd == 'archive': | |
151 | req.form['file'] = req.form['node'] |
|
|||
152 | elif cmd == 'archive': |
|
|||
153 | fn = req.form['node'][0] |
|
154 | fn = req.form['node'][0] | |
154 | for type_, spec in self.archive_specs.iteritems(): |
|
155 | for type_, spec in self.archive_specs.iteritems(): | |
155 | ext = spec[2] |
|
156 | ext = spec[2] |
General Comments 0
You need to be logged in to leave comments.
Login now