hgweb: fill {rename} even if ?linerange is specified
authorYuya Nishihara <yuya@tcha.org>
Sat, 21 Apr 2018 17:31:03 +0900
changeset 38214 2aa0217bb655
parent 38213 c3df415037cd
child 38215 f715faeaceee
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.
mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Wed Apr 04 20:53:16 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Sat Apr 21 17:31:03 2018 +0900
@@ -1097,6 +1097,7 @@
                 'file': path,
                 'diff': diffs,
                 'linerange': webutil.formatlinerange(*lr),
+                'rename': templateutil.mappinglist([]),
             })
             entries.append(lm)
             if i == revcount: