[PATCH 4 of 4] namespaces: remove templatename method on the namespaces object
Sean Farley
sean.michael.farley at gmail.com
Fri Jan 2 17:42:05 CST 2015
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1419201247 28800
# Sun Dec 21 14:34:07 2014 -0800
# Node ID d74b01f30e1010f49a7d047a6913b662e217dbc0
# Parent be5de72834c153d850c1e9c33aeb3cc26db5f088
namespaces: remove templatename method on the namespaces object
Now that there is an object for each individual namespace, we use the
templatename property on that object 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
@@ -83,14 +83,10 @@ class namespaces(object):
maxrev = max(cl.rev(node) for node in n)
return cl.node(maxrev)
return n[0]
raise KeyError(_('no such name: %s') % name)
- def templatename(self, namespace):
- """method that returns the template name of a namespace"""
- return self._names[namespace].templatename
-
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