Show More
@@ -138,6 +138,14 b' class bmstore(object):' | |||||
138 | self._clean = False |
|
138 | self._clean = False | |
139 | del self._refmap[key] |
|
139 | del self._refmap[key] | |
140 |
|
140 | |||
|
141 | def names(self, node): | |||
|
142 | """Return a sorted list of bookmarks pointing to the specified node""" | |||
|
143 | marks = [] | |||
|
144 | for m, n in self._refmap.iteritems(): | |||
|
145 | if n == node: | |||
|
146 | marks.append(m) | |||
|
147 | return sorted(marks) | |||
|
148 | ||||
141 | def changectx(self, mark): |
|
149 | def changectx(self, mark): | |
142 | node = self._refmap[mark] |
|
150 | node = self._refmap[mark] | |
143 | return self._repo[node] |
|
151 | return self._repo[node] |
@@ -1029,11 +1029,7 b' class localrepository(object):' | |||||
1029 |
|
1029 | |||
1030 | def nodebookmarks(self, node): |
|
1030 | def nodebookmarks(self, node): | |
1031 | """return the list of bookmarks pointing to the specified node""" |
|
1031 | """return the list of bookmarks pointing to the specified node""" | |
1032 | marks = [] |
|
1032 | return self._bookmarks.names(node) | |
1033 | for bookmark, n in self._bookmarks.iteritems(): |
|
|||
1034 | if n == node: |
|
|||
1035 | marks.append(bookmark) |
|
|||
1036 | return sorted(marks) |
|
|||
1037 |
|
1033 | |||
1038 | def branchmap(self): |
|
1034 | def branchmap(self): | |
1039 | '''returns a dictionary {branch: [branchheads]} with branchheads |
|
1035 | '''returns a dictionary {branch: [branchheads]} with branchheads |
General Comments 0
You need to be logged in to leave comments.
Login now