[PATCH 3 of 4] namespaces: remove names method on the namespaces object
Sean Farley
sean.michael.farley at gmail.com
Fri Jan 2 17:42:04 CST 2015
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1419199460 28800
# Sun Dec 21 14:04:20 2014 -0800
# Node ID be5de72834c153d850c1e9c33aeb3cc26db5f088
# Parent 13a462c900a74cae0973571857f455c7dd54d0c0
namespaces: remove names method on the namespaces object
Now that there is an object for each individual namespace, we use that instead
of the method on the collection of namespaces.
diff --git a/mercurial/namespaces.py b/mercurial/namespaces.py
--- a/mercurial/namespaces.py
+++ b/mercurial/namespaces.py
@@ -87,15 +87,10 @@ class namespaces(object):
def templatename(self, namespace):
"""method that returns the template name of a namespace"""
return self._names[namespace].templatename
- def names(self, repo, namespace, node):
- """method that returns a (sorted) list of names in a namespace that
- match a given node"""
- return sorted(self._names[namespace].nodemap(repo, node))
-
class namespace(object):
"""provides an interface to a namespace
Namespaces are basically generic many-to-many mapping between some
(namespaced) names and nodes. The goal here is to control the pollution of
More information about the Mercurial-devel
mailing list