mercurial/templater.py
changeset 36648 6585ac350fd9
parent 36647 052351e3e1cd
child 36669 80d7fb6c2dec
equal deleted inserted replaced
36647:052351e3e1cd 36648:6585ac350fd9
  1598         styles = [styles]
  1598         styles = [styles]
  1599 
  1599 
  1600     for style in styles:
  1600     for style in styles:
  1601         # only plain name is allowed to honor template paths
  1601         # only plain name is allowed to honor template paths
  1602         if (not style
  1602         if (not style
  1603             or style in (os.curdir, pycompat.ospardir)
  1603             or style in (pycompat.oscurdir, pycompat.ospardir)
  1604             or pycompat.ossep in style
  1604             or pycompat.ossep in style
  1605             or pycompat.osaltsep and pycompat.osaltsep in style):
  1605             or pycompat.osaltsep and pycompat.osaltsep in style):
  1606             continue
  1606             continue
  1607         locations = [os.path.join(style, 'map'), 'map-' + style]
  1607         locations = [os.path.join(style, 'map'), 'map-' + style]
  1608         locations.append('map')
  1608         locations.append('map')