[Updated] D8844: templater: stop accepting a single style to stylemap()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Aug 2 16:08:17 UTC 2020


Closed by commit rHGb7444cfc2c05: templater: stop accepting a single style to stylemap() (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8844?vs=22147&id=22185

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8844/new/

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

AFFECTED FILES
  mercurial/templater.py

CHANGE DETAILS

diff --git a/mercurial/templater.py b/mercurial/templater.py
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -1089,9 +1089,6 @@
     if path is None:
         path = templatedir()
 
-    if isinstance(styles, bytes):
-        styles = [styles]
-
     if path is not None:
         for style in styles:
             # only plain name is allowed to honor template paths



To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200802/60982f93/attachment-0002.html>


More information about the Mercurial-patches mailing list