[PATCH 7 of 7] hgweb: fill {rename} even if ?linerange is specified

Yuya Nishihara yuya at tcha.org
Fri May 25 09:54:17 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1524299463 -32400
#      Sat Apr 21 17:31:03 2018 +0900
# Node ID ef98fb67b4dfa1a19434efe39f03e1c582285e72
# Parent  772811dd496236017bb0e630b935720da76dbcf0
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:


More information about the Mercurial-devel mailing list