Fix hook
authorGregory Szorc <gps@mozilla.com>
Wed, 16 Oct 2013 15:57:11 -0700
changeset 49 62f51eeea26b0b4cbd301ee8e19fe90ea872521a
parent 48 373b4c93db0fe569d5544367b915f247d1e05e37
child 50 9bd88e34d7dcab13b6b4a665b216e48fff123e34
push id32
push usergszorc@mozilla.com
push dateWed, 16 Oct 2013 22:57:12 +0000
Fix hook
__init__.py
--- a/__init__.py
+++ b/__init__.py
@@ -494,17 +494,17 @@ def buginfo(ui, repo, *bugs, **opts):
 
 
 def critic_hook(ui, repo, node=None, **opts):
     critique(ui, repo, node=node, **opts)
     return 0
 
 
 def reject_repo_names_hook(ui, repo, namespace=None, key=None, old=None,
-        new=None):
+        new=None, **kwargs):
     """prepushkey hook that prevents changes to reserved names.
 
     Names that begin with the name of a repository identifier are rejected.
     """
     if key.lower().startswith(REPOS.keys()):
         ui.warn('You are not allowed to push tags or bookmarks that share '
             'names with official Mozilla repositories: %s' % key)
         return True