style: fix style hook for some newer versions of mercurial.
authorNathan Binkert <nate@binkert.org>
Thu, 9 Apr 2009 05:21:25 +0000 (22:21 -0700)
committerNathan Binkert <nate@binkert.org>
Thu, 9 Apr 2009 05:21:25 +0000 (22:21 -0700)
util/style.py

index fa9a30b54851c1310b146436fb9420567dc4e5c4..4615739411c1161701e3d2e7b87a08bcfdcb57e0 100644 (file)
@@ -347,7 +347,7 @@ def do_check_whitespace(ui, repo, *files, **args):
             if prompt(fname, fixonly):
                 return True
 
-def check_whitespace(ui, repo, hooktype, node, parent1, parent2):
+def check_whitespace(ui, repo, hooktype, node, parent1, parent2, **kwargs):
     if hooktype != 'pretxncommit':
         raise AttributeError, \
               "This hook is only meant for pretxncommit, not %s" % hooktype
@@ -355,7 +355,7 @@ def check_whitespace(ui, repo, hooktype, node, parent1, parent2):
     args = { 'tabsize' : 8 }
     do_check_whitespace(ui, repo, **args)
 
-def check_format(ui, repo, hooktype, node, parent1, parent2):
+def check_format(ui, repo, hooktype, node, parent1, parent2, **kwargs):
     if hooktype != 'pretxncommit':
         raise AttributeError, \
               "This hook is only meant for pretxncommit, not %s" % hooktype