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

login
register
mail settings
Submitter Yuya Nishihara
Date May 25, 2018, 1:54 p.m.
Message ID <ef98fb67b4dfa1a19434.1527256457@mimosa>
Download mbox | patch
Permalink /patch/31857/
State Accepted
Headers show

Comments

Yuya Nishihara - May 25, 2018, 1:54 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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.
Augie Fackler - June 1, 2018, 6:23 p.m.
> On May 25, 2018, at 09:54, Yuya Nishihara <yuya@tcha.org> wrote:
> 
> # HG changeset patch
> # User Yuya Nishihara <yuya@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

queued, thanks

Patch

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: