Style checker: Fix a couple bugs in style.py.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 13 Jan 2011 20:30:18 +0000 (12:30 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 13 Jan 2011 20:30:18 +0000 (12:30 -0800)
util/style.py

index 1018e813cd0981b1068c2751c80daae682cb42a0..1307f87286927b74d2c3953acb8ba1112ea0040c 100644 (file)
@@ -103,7 +103,7 @@ def fixwhite(filename, fixonly=None):
 
     for i,line in enumerate(lines):
         if fixonly is None or i in fixonly:
-            line = fixwhite_line(line, tabsize)
+            line = fixwhite_line(line)
 
         print >>f, line,
 
@@ -309,7 +309,7 @@ def do_check_style(ui, repo, *files, **args):
             fixonly.add(i)
 
         if fixonly:
-            if prompt(fname, fixonly):
+            if prompt(fname, fixwhite, fixonly):
                 return True
 
 def do_check_format(ui, repo, **args):