diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -304,7 +304,8 @@ class hgwebdir(object): description_sort="", lastchange=d, lastchange_sort=d[1]-d[0], - archives=[]) + archives=[], + isdirectory=True) seendirs.add(name) yield row diff --git a/mercurial/templates/gitweb/map b/mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map +++ b/mercurial/templates/gitweb/map @@ -294,7 +294,12 @@ indexentry = ' {contact|obfuscate} {lastchange|rfc822date} {archives%indexarchiveentry} - + {if(isdirectory, '', + '' + )} + \n' indexarchiveentry = ' {type|escape} ' index = index.tmpl diff --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map +++ b/mercurial/templates/monoblue/map @@ -247,10 +247,11 @@ indexentry = ' {lastchange|rfc822date} {archives%indexarchiveentry} - + {if(isdirectory, '', + '' + )} \n' indexarchiveentry = '{type|escape} '