hgext/color.py
changeset 28347 ccb33e965150
parent 27259 290b41913d9f
child 28348 ccedb17a5657
equal deleted inserted replaced
28346:542d200bd261 28347:ccb33e965150
   488     # add known effects to the mapping so symbols like 'red', 'bold',
   488     # add known effects to the mapping so symbols like 'red', 'bold',
   489     # etc. don't need to be quoted
   489     # etc. don't need to be quoted
   490     mapping.update(dict([(k, k) for k in _effects]))
   490     mapping.update(dict([(k, k) for k in _effects]))
   491 
   491 
   492     thing = args[1][0](context, mapping, args[1][1])
   492     thing = args[1][0](context, mapping, args[1][1])
       
   493     thing = templater.stringify(thing)
   493 
   494 
   494     # apparently, repo could be a string that is the favicon?
   495     # apparently, repo could be a string that is the favicon?
   495     repo = mapping.get('repo', '')
   496     repo = mapping.get('repo', '')
   496     if isinstance(repo, str):
   497     if isinstance(repo, str):
   497         return thing
   498         return thing
   498 
   499 
   499     label = args[0][0](context, mapping, args[0][1])
   500     label = args[0][0](context, mapping, args[0][1])
   500 
       
   501     thing = templater.stringify(thing)
       
   502     label = templater.stringify(label)
   501     label = templater.stringify(label)
   503 
   502 
   504     return repo.ui.label(thing, label)
   503     return repo.ui.label(thing, label)
   505 
   504 
   506 def uisetup(ui):
   505 def uisetup(ui):