Mercurial > hg
changeset 9550:3bcb28131bab
color: add support for record extension
author | TK Soh <teekaysoh@gmail.com> |
---|---|
date | Thu, 08 Oct 2009 09:27:22 +0800 |
parents | 8b8920209317 |
children | 3e698434b990 |
files | hgext/color.py |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/color.py Wed Oct 07 20:32:07 2009 +0200 +++ b/hgext/color.py Thu Oct 08 09:27:22 2009 +0800 @@ -234,6 +234,13 @@ # The mq extension is not enabled pass + try: + rec = extensions.find('record') + _setupcmd(ui, 'record', rec.cmdtable, colordiff, _diff_effects) + except KeyError: + # The record extension is not enabled + pass + def _setupcmd(ui, cmd, table, func, effectsmap): '''patch in command to command table and load effect map''' def nocolor(orig, *args, **opts):