changeset 6df0633d883b in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=6df0633d883b
description:
        style: fix style hook for some newer versions of mercurial.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
util/style.py |    4 ++--

diffs (21 lines):

diff -r 0647c8b31a99 -r 6df0633d883b util/style.py
--- a/util/style.py     Mon Apr 06 10:19:36 2009 -0700
+++ b/util/style.py     Wed Apr 08 22:21:25 2009 -0700
@@ -347,7 +347,7 @@
             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 @@
     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
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to