equal
deleted
inserted
replaced
2137 '''return the tags associated with a node''' |
2137 '''return the tags associated with a node''' |
2138 if not self._tagscache.nodetagscache: |
2138 if not self._tagscache.nodetagscache: |
2139 nodetagscache = {} |
2139 nodetagscache = {} |
2140 for t, n in self._tagscache.tags.items(): |
2140 for t, n in self._tagscache.tags.items(): |
2141 nodetagscache.setdefault(n, []).append(t) |
2141 nodetagscache.setdefault(n, []).append(t) |
2142 for tags in pycompat.itervalues(nodetagscache): |
2142 for tags in nodetagscache.values(): |
2143 tags.sort() |
2143 tags.sort() |
2144 self._tagscache.nodetagscache = nodetagscache |
2144 self._tagscache.nodetagscache = nodetagscache |
2145 return self._tagscache.nodetagscache.get(node, []) |
2145 return self._tagscache.nodetagscache.get(node, []) |
2146 |
2146 |
2147 def nodebookmarks(self, node): |
2147 def nodebookmarks(self, node): |