##// 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 141 else:
142 142 cmd = ''
143 143
144 if cmd == 'static':
145 req.form['file'] = ['/'.join(args)]
146 else:
144 147 if args and args[0]:
145 148 node = args.pop(0)
146 149 req.form['node'] = [node]
147 150 if args:
148 151 req.form['file'] = args
149 152
150 if cmd == 'static':
151 req.form['file'] = req.form['node']
152 elif cmd == 'archive':
153 if cmd == 'archive':
153 154 fn = req.form['node'][0]
154 155 for type_, spec in self.archive_specs.iteritems():
155 156 ext = spec[2]
General Comments 0
You need to be logged in to leave comments. Login now