Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 37698:7738ae638b62
hgweb: wrap {changenav} and {nav} with mappinglist
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Apr 2018 23:40:08 +0900 |
parents | f83cb91b052e |
children | 2095331ff926 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Apr 01 23:34:29 2018 +0900 +++ b/mercurial/hgweb/webcommands.py Sun Apr 01 23:40:08 2018 +0900 @@ -1084,7 +1084,7 @@ linerange = webutil.formatlinerange(*lrange) # deactivate numeric nav links when linerange is specified as this # would required a dedicated "revnav" class - nav = [] + nav = templateutil.mappinglist([]) if descend: it = dagop.blockdescendants(fctx, *lrange) else: