[PATCH 2 of 3] color: removed unused import and fixed undefined name

Brodie Rao dackze at gmail.com
Wed Nov 12 09:28:58 CST 2008


# HG changeset patch
# User Brodie Rao <me+hg at dackz.net>
# Date 1226502101 18000
# Node ID 2fbcee0be37f7e9c2ccd27805dadb30e4296291c
# Parent  04ec738a6cdc27619b827df8b2819ab0d5f65e1b
color: removed unused import and fixed undefined name

diff -r 04ec738a6cdc -r 2fbcee0be37f hgext/color.py
--- a/hgext/color.py	Wed Nov 12 10:00:18 2008 -0500
+++ b/hgext/color.py	Wed Nov 12 10:01:41 2008 -0500
@@ -58,7 +58,7 @@
 
 import re, sys
 
-from mercurial import commands, cmdutil, extensions
+from mercurial import commands, extensions
 from mercurial.i18n import _
 
 # start and stop parameters for effects
@@ -112,7 +112,7 @@
         # output with status abbreviations
         opts['no_status'] = False
         ui.pushbuffer()
-        statusfunc(ui, repo, *pats, **opts)
+        orig(ui, repo, *pats, **opts)
         # filter out empty strings
         lines_with_status = [ line for
                               line in ui.popbuffer().split(delimiter) if line ]


More information about the Mercurial-devel mailing list