diff 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
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat Jan 03 20:16:10 2009 +0100
+++ b/mercurial/hgweb/webcommands.py	Sun Jan 04 19:10:42 2009 +0100
@@ -292,7 +292,7 @@
                     break
             h[None] = None # denotes files present
 
-    if not files and not dirs:
+    if mf and not files and not dirs:
         raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path)
 
     def filelist(**map):