diff options
author | Nathan Binkert <nate@binkert.org> | 2009-04-08 22:21:25 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-04-08 22:21:25 -0700 |
commit | 08043c777f1f05f5e14581950013461f328965be (patch) | |
tree | 1b2844abffba5e06cc9518c1bca7b0335f957e10 | |
parent | d080581db1f9ee4e1e6d07d2b01c13c67908a391 (diff) | |
download | gem5-08043c777f1f05f5e14581950013461f328965be.tar.xz |
style: fix style hook for some newer versions of mercurial.
-rw-r--r-- | util/style.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/style.py b/util/style.py index fa9a30b54..461573941 100644 --- a/util/style.py +++ b/util/style.py @@ -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 |