mercurial/templater.py
changeset 1975 6e1a8ea5d717
parent 1964 778281d46bb2
child 1987 04c17fc39c84
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -65,7 +65,7 @@ class templater(object):
         filters is dict of functions. each transforms a value into another.
         defaults is dict of default map definitions.'''
         self.mapfile = mapfile or 'template'
-        self.cache = cache
+        self.cache = cache.copy()
         self.map = {}
         self.base = (mapfile and os.path.dirname(mapfile)) or ''
         self.filters = filters