mercurial/localrepo.py
changeset 48935 2cce2fa5bcf7
parent 48925 1414b65303d5
child 48946 642e31cb55f0
equal deleted inserted replaced
48934:06de08b36c82 48935:2cce2fa5bcf7
  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):