##// END OF EJS Templates
tracing: add a couple of trace points on obsolete and repoview...
Augie Fackler -
r43534:4353942b default
parent child Browse files
Show More
@@ -899,11 +899,12 b' def getrevs(repo, name):'
899
899
900 Such access may compute the set and cache it for future use"""
900 Such access may compute the set and cache it for future use"""
901 repo = repo.unfiltered()
901 repo = repo.unfiltered()
902 if not repo.obsstore:
902 with util.timedcm('getrevs %s', name):
903 return frozenset()
903 if not repo.obsstore:
904 if name not in repo.obsstore.caches:
904 return frozenset()
905 repo.obsstore.caches[name] = cachefuncs[name](repo)
905 if name not in repo.obsstore.caches:
906 return repo.obsstore.caches[name]
906 repo.obsstore.caches[name] = cachefuncs[name](repo)
907 return repo.obsstore.caches[name]
907
908
908
909
909 # To be simple we need to invalidate obsolescence cache when:
910 # To be simple we need to invalidate obsolescence cache when:
@@ -274,8 +274,8 b' class repoview(object):'
274 unfiindex = unfichangelog.index
274 unfiindex = unfichangelog.index
275 unfilen = len(unfiindex)
275 unfilen = len(unfiindex)
276 unfinode = unfiindex[unfilen - 1][7]
276 unfinode = unfiindex[unfilen - 1][7]
277
277 with util.timedcm('repo filter for %s', self.filtername):
278 revs = filterrevs(unfi, self.filtername, self._visibilityexceptions)
278 revs = filterrevs(unfi, self.filtername, self._visibilityexceptions)
279 cl = self._clcache
279 cl = self._clcache
280 newkey = (unfilen, unfinode, hash(revs), unfichangelog._delayed)
280 newkey = (unfilen, unfinode, hash(revs), unfichangelog._delayed)
281 # if cl.index is not unfiindex, unfi.changelog would be
281 # if cl.index is not unfiindex, unfi.changelog would be
General Comments 0
You need to be logged in to leave comments. Login now