equal
deleted
inserted
replaced
897 def getrevs(repo, name): |
897 def getrevs(repo, name): |
898 """Return the set of revision that belong to the <name> set |
898 """Return the set of revision that belong to the <name> set |
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: |
910 # |
911 # |
911 # - new changeset is added: |
912 # - new changeset is added: |