diff -r 43d55088415a -r 67964cda8701 mercurial/templater.py --- a/mercurial/templater.py Sat May 12 16:00:53 2012 +0200 +++ b/mercurial/templater.py Sat May 12 16:00:57 2012 +0200 @@ -312,7 +312,7 @@ def load(self, t): '''Get the template for the given template name. Use a local cache.''' - if not t in self.cache: + if t not in self.cache: try: self.cache[t] = util.readfile(self.map[t][1]) except KeyError, inst: