Mercurial > hg
diff mercurial/templater.py @ 24303:15afda349b11
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 13 Mar 2015 17:55:04 -0500 |
parents | 6c55e37ba5f2 b73a22d1d9bf |
children | 6ddc86eedc3b |
line wrap: on
line diff
--- a/mercurial/templater.py Thu Mar 12 22:59:52 2015 -0400 +++ b/mercurial/templater.py Fri Mar 13 17:55:04 2015 -0500 @@ -749,7 +749,11 @@ styles = [styles] for style in styles: - if not style: + # only plain name is allowed to honor template paths + if (not style + or style in (os.curdir, os.pardir) + or os.sep in style + or os.altsep and os.altsep in style): continue locations = [os.path.join(style, 'map'), 'map-' + style] locations.append('map')