[PATCH] add color diff support to record extension

TK Soh teekaysoh at gmail.com
Fri Aug 7 01:26:37 CDT 2009


# HG changeset patch
# User TK Soh <teekaysoh at gmail.com>
# Date 1249625836 -28800
# Node ID f13256af5362411385e2f4c3a56925428dfa8ddc
# Parent  11a4eb81fb4f4742451591489e2797dc47903277
color: add support for record extension

diff -r 11a4eb81fb4f -r f13256af5362 hgext/color.py
--- a/hgext/color.py	Tue Dec 30 22:10:41 2008 +0100
+++ b/hgext/color.py	Fri Aug 07 14:17:16 2009 +0800
@@ -235,6 +235,10 @@
         from hgext import mq
         _setupcmd(ui, 'qdiff', mq.cmdtable, colordiff, _diff_effects)
         _setupcmd(ui, 'qseries', mq.cmdtable, colorqseries, _patch_effects)
+    if ui.config('extensions', 'hgext.record') is not None or \
+            ui.config('extensions', 'record') is not None:
+        from hgext import record
+        _setupcmd(ui, 'record', record.cmdtable, colordiff, _diff_effects)

 def _setupcmd(ui, cmd, table, func, effectsmap):
     '''patch in command to command table and load effect map'''


More information about the Mercurial-devel mailing list