changeset 24306 | 6ddc86eedc3b |
parent 24303 | 15afda349b11 |
child 24337 | 696ab1a24ae0 |
--- a/mercurial/templater.py Fri Mar 13 14:20:13 2015 -0400 +++ b/mercurial/templater.py Fri Mar 13 17:00:06 2015 -0400 @@ -656,7 +656,10 @@ self.mapfile = mapfile or 'template' self.cache = cache.copy() self.map = {} - self.base = (mapfile and os.path.dirname(mapfile)) or '' + if mapfile: + self.base = os.path.dirname(mapfile) + else: + self.base = '' self.filters = templatefilters.filters.copy() self.filters.update(filters) self.defaults = defaults