changeset 1649:beb7da710c8a

hgweb: fix breakage on manifest subdirs from path cleaning
author Matt Mackall <mpm@selenic.com>
date Sun, 29 Jan 2006 11:17:54 +1300
parents 80640ef93aec
children f2ebd5251e88
files mercurial/hgweb.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb.py	Sun Jan 29 10:10:16 2006 +1300
+++ b/mercurial/hgweb.py	Sun Jan 29 11:17:54 2006 +1300
@@ -580,6 +580,8 @@
         files = {}
 
         p = path[1:]
+        if p and p[-1] != "/":
+            p += "/"
         l = len(p)
 
         for f,n in mf.items():