Show More
@@ -899,11 +899,12 b' def getrevs(repo, name):' | |||
|
899 | 899 | |
|
900 | 900 | Such access may compute the set and cache it for future use""" |
|
901 | 901 | repo = repo.unfiltered() |
|
902 | if not repo.obsstore: | |
|
903 | return frozenset() | |
|
904 | if name not in repo.obsstore.caches: | |
|
905 | repo.obsstore.caches[name] = cachefuncs[name](repo) | |
|
906 |
|
|
|
902 | with util.timedcm('getrevs %s', name): | |
|
903 | if not repo.obsstore: | |
|
904 | return frozenset() | |
|
905 | if name not in repo.obsstore.caches: | |
|
906 | repo.obsstore.caches[name] = cachefuncs[name](repo) | |
|
907 | return repo.obsstore.caches[name] | |
|
907 | 908 | |
|
908 | 909 | |
|
909 | 910 | # To be simple we need to invalidate obsolescence cache when: |
@@ -274,8 +274,8 b' class repoview(object):' | |||
|
274 | 274 | unfiindex = unfichangelog.index |
|
275 | 275 | unfilen = len(unfiindex) |
|
276 | 276 | unfinode = unfiindex[unfilen - 1][7] |
|
277 | ||
|
278 | revs = filterrevs(unfi, self.filtername, self._visibilityexceptions) | |
|
277 | with util.timedcm('repo filter for %s', self.filtername): | |
|
278 | revs = filterrevs(unfi, self.filtername, self._visibilityexceptions) | |
|
279 | 279 | cl = self._clcache |
|
280 | 280 | newkey = (unfilen, unfinode, hash(revs), unfichangelog._delayed) |
|
281 | 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