Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/webcommands.py @ 37403:448f7ec247e2
hgweb: fix type of {nav} keyword when linerange filter is active
Spotted by making '%' operator check the operand type more strictly. Before,
"{nav}" would be evaluated to a lazy "" (empty string) and {"" % x} would
yield one empty string.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Mar 2018 21:18:57 +0900 |
parents | 7d94fe3ea0ac |
children | 876d54f800cf |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Mar 18 21:46:20 2018 +0900 +++ b/mercurial/hgweb/webcommands.py Sun Mar 18 21:18:57 2018 +0900 @@ -1082,7 +1082,7 @@ linerange = webutil.formatlinerange(*lrange) # deactivate numeric nav links when linerange is specified as this # would required a dedicated "revnav" class - nav = None + nav = [] if descend: it = dagop.blockdescendants(fctx, *lrange) else: