##// 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 args and args[0]:
144 if cmd == 'static':
145 node = args.pop(0)
145 req.form['file'] = ['/'.join(args)]
146 req.form['node'] = [node]
146 else:
147 if args:
147 if args and args[0]:
148 req.form['file'] = args
148 node = args.pop(0)
149 req.form['node'] = [node]
150 if 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