Submitter | Sean Farley |
---|---|
Date | Jan. 8, 2015, 12:15 a.m. |
Message ID | <b4996d3d9ed2de964a95.1420676155@laptop.local> |
Download | mbox | patch |
Permalink | /patch/7371/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/namespaces.py b/mercurial/namespaces.py --- a/mercurial/namespaces.py +++ b/mercurial/namespaces.py @@ -138,5 +138,12 @@ class namespace(object): def names(self, repo, node): """method that returns a (sorted) list of names in a namespace that match a given node""" return sorted(self.nodemap(repo, node)) + + def nodes(self, repo, name): + """method that returns a list of nodes in a namespace that + match a given name. + + """ + return sorted(self.namemap(repo, name))