# HG changeset patch # User Shun-ichi Goto # Date 2006-03-18 17:51:25 # Node ID 6e1a8ea5d7172c7b3105784027f6d3cfafedab40 # Parent 0d54675cd56669794bdc519de3e71839f56bddf1 Duplicate cache when creating templater. diff --git a/mercurial/templater.py b/mercurial/templater.py --- 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