Mercurial > hg
comparison mercurial/hgweb/webcommands.py @ 7565:5f162f61e479
hgweb: fix problems with empty repositories
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 04 Jan 2009 19:10:42 +0100 |
parents | cf7741aa1e96 |
children | 069b29656401 |
comparison
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] |