diff mercurial/templateutil.py @ 44598:e3e44e6e7245

templater: fix cbor() filter to accept smartset So the wrapper type can return a bare smartset.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 15 Mar 2020 22:01:38 +0900
parents fc1fa3a07af6
children 1f81f680912f
line wrap: on
line diff
--- a/mercurial/templateutil.py	Sun Mar 15 15:12:44 2020 +0900
+++ b/mercurial/templateutil.py	Sun Mar 15 22:01:38 2020 +0900
@@ -474,7 +474,7 @@
         return bool(self._revs)
 
     def tovalue(self, context, mapping):
-        return list(self._revs)
+        return self._revs
 
 
 class _mappingsequence(wrapped):