Mercurial > hg
comparison mercurial/namespaces.py @ 23716:f4828a8f6ae9
namespaces: copy implementation to new namespace object
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Fri, 19 Dec 2014 17:17:17 -0800 |
parents | eee55c09010a |
children | d8663e6153c1 |
comparison
equal
deleted
inserted
replaced
23715:eee55c09010a | 23716:f4828a8f6ae9 |
---|---|
145 """ | 145 """ |
146 self.name = name | 146 self.name = name |
147 self.templatename = templatename | 147 self.templatename = templatename |
148 self.namemap = namemap | 148 self.namemap = namemap |
149 self.nodemap = nodemap | 149 self.nodemap = nodemap |
150 | |
151 def names(self, repo, node): | |
152 """method that returns a (sorted) list of names in a namespace that | |
153 match a given node""" | |
154 return sorted(self.nodemap(repo, node)) |