I checked the tutorial on how to write a mercury extension and I am wondering how can I do to add a filter for keywords?
Thanks for the help.
I think an example will explain this best:
from mercurial import templatefilters def upper(s): return s.upper() def extsetup(ui): templatefilters.filters["upper"] = upper # Then run: # # hg tip --config extensions.upper=~/tmp/upper.py --template "{author|upper}\n" # # to test
(shamelessly stolen from mg, I hope he will forgive me;)
Source: https://habr.com/ru/post/1369122/More articles:Java - Oracle - Insert database - Timestamp to date - javaDoes reflection in .Net use the performance effect badly? - performanceLd magically redefines statically related characters - c ++Are table variables threads safe for SQL Server 2008 r2? - sql@@ IDENTITY vs SCOPE_IDENTITY () vs IDENT_CURRENT [sql server 2005] - sql-server-2005TImageList restriction? - delphiThe working mechanism of private inheritance of a class that has a private constructor - c ++need symphony2 http_digest firewall configuration example - symfonyClash facebook-json with existing JSON library in project - jsonProblems installing json framework on xcode4 - iphoneAll Articles