# HG changeset patch
# User Chris Eldredge <chris.eldredge@gmail.com>
# Date 1348595059 -3600
# Node ID a80d7ee833e14e6764a25122bb46843fc161c9bf
# Parent  d25f60320cd4c34bd38e508f0ff63441101892f7
Fix file list for repo root.

diff -r d25f60320cd4 -r a80d7ee833e1 __init__.py
--- a/__init__.py	Sat Sep 22 16:00:22 2012 -0400
+++ b/__init__.py	Tue Sep 25 18:44:19 2012 +0100
@@ -2,7 +2,7 @@
 import sys
 
 # If using TortoiseHg, obtain Python-Markdown and tell Python where to find it:
-sys.path.append("c:/Program Files (x86)/MSBuild/The Motley Fool/Fool.Build/Resources/hgext.markdown/markdown-2.2.0-py2.7.egg")
+#sys.path.append("c:/python27/Lib/site-packages/markdown-2.2.0-py2.7.egg")
 
 import logging, markdown, mimetypes
 from mercurial import extensions, encoding, util
@@ -65,6 +65,9 @@
 	f = req.form.get('file', [''])[0]
 	parts = os.path.splitext(f)
 	
+	if 'file' not in req.form:
+		return webcommands.manifest(web, req, tmpl)
+	
 	try:
 		fctx = webutil.filectx(web.repo, req)
 		text = fctx.data()