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

Brodie Rao dackze at gmail.com
Wed Nov 12 18:10:20 CST 2008


# HG changeset patch
# User Brodie Rao <me+hg at dackz.net>
# Date 1226534503 18000
# Node ID fad390a2058c690f974e4a10ee225be536977b43
# Parent  746c643d0ff6ee7f10ecc7039ebf0f7332b27c77
color: removed unused import and fixed undefined name

diff -r 746c643d0ff6 -r fad390a2058c hgext/color.py
--- a/hgext/color.py	Wed Nov 12 19:01:19 2008 -0500
+++ b/hgext/color.py	Wed Nov 12 19:01:43 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