D3772: highlight: adjust to attribute being private
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Jun 18 00:58:21 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG876352ea831e: highlight: adjust to attribute being private (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3772?vs=9141&id=9143
REVISION DETAIL
https://phab.mercurial-scm.org/D3772
AFFECTED FILES
hgext/highlight/highlight.py
CHANGE DETAILS
diff --git a/hgext/highlight/highlight.py b/hgext/highlight/highlight.py
--- a/hgext/highlight/highlight.py
+++ b/hgext/highlight/highlight.py
@@ -89,7 +89,7 @@
coloriter = (s.encode(encoding.encoding, 'replace')
for s in colorized.splitlines())
- tmpl.filters['colorize'] = lambda x: next(coloriter)
+ tmpl._filters['colorize'] = lambda x: next(coloriter)
oldl = tmpl.cache[field]
newl = oldl.replace('line|escape', 'line|colorize')
To: durin42, #hg-reviewers, martinvonz
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list