hgext/color.py
changeset 20670 0084fcd5d7e2
parent 20455 a2c08adbb86e
parent 20661 7e627fe63e5e
child 20992 05086b56b564
equal deleted inserted replaced
20669:870d60294b04 20670:0084fcd5d7e2
   391     # apparently, repo could be a string that is the favicon?
   391     # apparently, repo could be a string that is the favicon?
   392     repo = mapping.get('repo', '')
   392     repo = mapping.get('repo', '')
   393     if isinstance(repo, str):
   393     if isinstance(repo, str):
   394         return thing
   394         return thing
   395 
   395 
   396     label = templater.stringify(args[0][0](context, mapping, args[0][1]))
   396     label = templater._evalifliteral(args[0], context, mapping)
   397     label = templater.runtemplate(context, mapping,
       
   398                                   templater.compiletemplate(label, context))
       
   399 
   397 
   400     thing = templater.stringify(thing)
   398     thing = templater.stringify(thing)
   401     label = templater.stringify(label)
   399     label = templater.stringify(label)
   402 
   400 
   403     return repo.ui.label(thing, label)
   401     return repo.ui.label(thing, label)