# HG changeset patch # User Sean Farley # Date 2015-01-15 03:39:13 # Node ID 9f48242929a9a6824e62927c440e4707f2ba1e68 # Parent b2d8f3685b06a181c17ec4a037b5901b43608be1 namespaces: make the constructor into named args None of the arguments are truly optional but this makes adding future arguments more robust and perhaps optional. diff --git a/mercurial/namespaces.py b/mercurial/namespaces.py --- a/mercurial/namespaces.py +++ b/mercurial/namespaces.py @@ -120,12 +120,13 @@ class namespace(object): """ - def __init__(self, name, templatename, listnames, namemap, nodemap): + def __init__(self, name, templatename=None, listnames=None, namemap=None, + nodemap=None): """create a namespace name: the namespace to be registered (in plural form) + templatename: the name to use for templating listnames: function to list all names - templatename: the name to use for templating namemap: function that inputs a node, output name(s) nodemap: function that inputs a name, output node(s)