mercurial/color.py
changeset 30969 ddc80d1777a6
parent 30968 0d2a58a04080
child 30970 683606a829e8
equal deleted inserted replaced
30968:0d2a58a04080 30969:ddc80d1777a6
   111            'tags.normal': 'green',
   111            'tags.normal': 'green',
   112            'tags.local': 'black bold'}
   112            'tags.local': 'black bold'}
   113 
   113 
   114 def loadcolortable(ui, extname, colortable):
   114 def loadcolortable(ui, extname, colortable):
   115     _styles.update(colortable)
   115     _styles.update(colortable)
       
   116 
       
   117 def valideffect(effect):
       
   118     'Determine if the effect is valid or not.'
       
   119     good = False
       
   120     if not _terminfo_params and effect in _effects:
       
   121         good = True
       
   122     elif (effect in _terminfo_params
       
   123           or effect[:-11] in _terminfo_params):
       
   124         good = True
       
   125     return good