mercurial/hgweb/webcommands.py
changeset 7565 5f162f61e479
parent 7434 cf7741aa1e96
child 7612 069b29656401
equal deleted inserted replaced
7564:f1af59451c0c 7565:5f162f61e479
   290                 h = h[elem]
   290                 h = h[elem]
   291                 if len(h) > 1:
   291                 if len(h) > 1:
   292                     break
   292                     break
   293             h[None] = None # denotes files present
   293             h[None] = None # denotes files present
   294 
   294 
   295     if not files and not dirs:
   295     if mf and not files and not dirs:
   296         raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path)
   296         raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path)
   297 
   297 
   298     def filelist(**map):
   298     def filelist(**map):
   299         for f in util.sort(files):
   299         for f in util.sort(files):
   300             full = files[f]
   300             full = files[f]