mercurial/templater.py
changeset 30625 bcf4a975f93d
parent 30615 bb77654dc7ae
child 31024 0b8356705de6
equal deleted inserted replaced
30624:a82a6eee2613 30625:bcf4a975f93d
  1243     for style in styles:
  1243     for style in styles:
  1244         # only plain name is allowed to honor template paths
  1244         # only plain name is allowed to honor template paths
  1245         if (not style
  1245         if (not style
  1246             or style in (os.curdir, os.pardir)
  1246             or style in (os.curdir, os.pardir)
  1247             or pycompat.ossep in style
  1247             or pycompat.ossep in style
  1248             or os.altsep and os.altsep in style):
  1248             or pycompat.osaltsep and pycompat.osaltsep in style):
  1249             continue
  1249             continue
  1250         locations = [os.path.join(style, 'map'), 'map-' + style]
  1250         locations = [os.path.join(style, 'map'), 'map-' + style]
  1251         locations.append('map')
  1251         locations.append('map')
  1252 
  1252 
  1253         for path in paths:
  1253         for path in paths: