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): |