##// END OF EJS Templates
hgweb: handle subdirectories within static directory
Brendan Cully -
r7287:6e9fe4ff default
parent child Browse files
Show More
@@ -141,15 +141,16 b' class hgweb(object):'
141 else:
141 else:
142 cmd = ''
142 cmd = ''
143
143
144 if cmd == 'static':
145 req.form['file'] = ['/'.join(args)]
146 else:
144 if args and args[0]:
147 if args and args[0]:
145 node = args.pop(0)
148 node = args.pop(0)
146 req.form['node'] = [node]
149 req.form['node'] = [node]
147 if args:
150 if args:
148 req.form['file'] = args
151 req.form['file'] = args
149
152
150 if cmd == 'static':
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