# HG changeset patch # User Mads Kiilerich # Date 2014-09-28 14:57:37 # Node ID d844e220792a2a5d5506dce7caecc07635ed881e # Parent 660861a6fad4ffa859b6b17504181ef07b6b82bc templater: don't search randomly for templates - trust util.datapath The search was introduced in 2653740d8118. It might have been necessary back then when using __file__ directly and frozen-ness wasn't considered. Now we should know exactly where the templates can be found. diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -711,7 +711,7 @@ class templater(object): def templatepaths(): '''return locations used for template files.''' - pathsrel = ['templates', '../templates'] + pathsrel = ['templates'] paths = [os.path.normpath(os.path.join(util.datapath, f)) for f in pathsrel] return [p for p in paths if os.path.isdir(p)]