Style: fix IGNORE_STYLE so it isn't required on the command line.

--HG--
extra : convert_revision : 42ff16a2ae0316cc4b70ade961a50d5d4a5eb950
This commit is contained in:
Ali Saidi 2007-08-12 22:44:14 -04:00
parent e9ddc7fbca
commit ce219738b9

View file

@ -118,7 +118,7 @@ pretxncommit.style = python:style.check_whitespace
""" % (ROOT)
sys.exit(1)
if ARGUMENTS['IGNORE_STYLE'] != 'True' and isdir(joinpath(ROOT, '.hg')):
if ARGUMENTS.get('IGNORE_STYLE') != 'True' and isdir(joinpath(ROOT, '.hg')):
try:
from mercurial import ui
check_style_hook(ui.ui())