# HG changeset patch # User Yuya Nishihara # Date 2018-04-21 08:31:03 # Node ID 2aa0217bb6559e49ec1ca8061be7dc108775d2d0 # Parent c3df415037cd853e0ddeec8e363e331ef1916436 hgweb: fill {rename} even if ?linerange is specified Otherwise, {rename % ...} would fail. Hopefully this is the last hgweb patch so I can start fixing templater stuff. diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -1097,6 +1097,7 @@ def filelog(web): 'file': path, 'diff': diffs, 'linerange': webutil.formatlinerange(*lr), + 'rename': templateutil.mappinglist([]), }) entries.append(lm) if i == revcount: