Patchwork D5666: hgweb: ensure template mapping keys are bytes

login
register
mail settings
Submitter phabricator
Date Jan. 24, 2019, 2:26 a.m.
Message ID <274501eb7dd6a4ba0543a70866808864@localhost.localdomain>
Download mbox | patch
Permalink /patch/37945/
State Not Applicable
Headers show

Comments

phabricator - Jan. 24, 2019, 2:26 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGeff0a7d3229c: hgweb: ensure template mapping keys are bytes (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5666?vs=13378&id=13382

REVISION DETAIL
  https://phab.mercurial-scm.org/D5666

AFFECTED FILES
  mercurial/hgweb/webutil.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py
+++ b/mercurial/hgweb/webutil.py
@@ -456,13 +456,13 @@ 
     files = listfilediffs(ctx.files(), n, web.maxfiles)
 
     entry = commonentry(repo, ctx)
-    entry.update(
-        allparents=_kwfunc(lambda context, mapping: parents(ctx)),
-        parent=_kwfunc(lambda context, mapping: parents(ctx, rev - 1)),
-        child=_kwfunc(lambda context, mapping: children(ctx, rev + 1)),
-        changelogtag=showtags,
-        files=files,
-    )
+    entry.update({
+        'allparents': _kwfunc(lambda context, mapping: parents(ctx)),
+        'parent': _kwfunc(lambda context, mapping: parents(ctx, rev - 1)),
+        'child': _kwfunc(lambda context, mapping: children(ctx, rev + 1)),
+        'changelogtag': showtags,
+        'files': files,
+    })
     return entry
 
 def changelistentries(web, revs, maxcount, parityfn):