From 43b58ce3adbd827d9dabfcb117e4ad74ddd911d8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 13 Jan 2011 12:30:18 -0800 Subject: [PATCH] Style checker: Fix a couple bugs in style.py. --- util/style.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/style.py b/util/style.py index 1018e813c..1307f8728 100644 --- a/util/style.py +++ b/util/style.py @@ -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): -- 2.30.2