hgext/color.py
changeset 7213 b4c035057d34
parent 6856 c6890cfc2253
child 7216 292fb2ad2846
equal deleted inserted replaced
7212:402d317778d3 7213:b4c035057d34
   196         decoratorentry[1].append(option)
   196         decoratorentry[1].append(option)
   197     table[cmdkey] = decoratorentry
   197     table[cmdkey] = decoratorentry
   198 
   198 
   199 def _cmdtableitem(ui, cmd, table):
   199 def _cmdtableitem(ui, cmd, table):
   200     '''Return key, value from table for cmd, or None if not found.'''
   200     '''Return key, value from table for cmd, or None if not found.'''
   201     aliases, entry = cmdutil.findcmd(ui, cmd, table)
   201     aliases, entry = cmdutil.findcmd(cmd, table)
   202     for candidatekey, candidateentry in table.iteritems():
   202     for candidatekey, candidateentry in table.iteritems():
   203         if candidateentry is entry:
   203         if candidateentry is entry:
   204             return candidatekey, entry
   204             return candidatekey, entry
   205 
   205 
   206 def _colordecorator(colorfunc, nocolorfunc, ui, repo, *args, **opts):
   206 def _colordecorator(colorfunc, nocolorfunc, ui, repo, *args, **opts):