##// END OF EJS Templates
hgweb: cleanup the manifest generation
Benoit Boissinot -
r7102:14f3ea2e default
parent child Browse files
Show More
@@ -276,12 +276,11 b' def manifest(web, req, tmpl):'
276 if f[:l] != path:
276 if f[:l] != path:
277 continue
277 continue
278 remain = f[l:]
278 remain = f[l:]
279 if "/" in remain:
279 idx = remain.find('/')
280 short = remain[:remain.index("/") + 1] # bleah
280 if idx != -1:
281 files[short] = (f, None)
281 remain = remain[:idx+1]
282 else:
282 n = None
283 short = os.path.basename(remain)
283 files[remain] = (f, n)
284 files[short] = (f, n)
285
284
286 if not files:
285 if not files:
287 raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path)
286 raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path)
General Comments 0
You need to be logged in to leave comments. Login now