Mercurial > hg
comparison mercurial/obsolete.py @ 18001:e02feadd15ea
clfilter: unfilter computation of obsolescence related computation
All obsolescence related sets need to be computed on the full unfiltered
version of the repository, in particular because several of them
(obsolete, extinct) are used to compute the hidden revisions.
On a filtered repo, revset predicates related to these sets will be
properly filtered because of revset's own pre-filtering.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 08 Oct 2012 16:55:00 +0200 |
parents | 70b08df24fef |
children | 4bec77e62c00 |
comparison
equal
deleted
inserted
replaced
18000:f9459bcd25fc | 18001:e02feadd15ea |
---|---|
424 | 424 |
425 def getrevs(repo, name): | 425 def getrevs(repo, name): |
426 """Return the set of revision that belong to the <name> set | 426 """Return the set of revision that belong to the <name> set |
427 | 427 |
428 Such access may compute the set and cache it for future use""" | 428 Such access may compute the set and cache it for future use""" |
429 repo = repo.unfiltered() | |
429 if not repo.obsstore: | 430 if not repo.obsstore: |
430 return () | 431 return () |
431 if name not in repo.obsstore.caches: | 432 if name not in repo.obsstore.caches: |
432 repo.obsstore.caches[name] = cachefuncs[name](repo) | 433 repo.obsstore.caches[name] = cachefuncs[name](repo) |
433 return repo.obsstore.caches[name] | 434 return repo.obsstore.caches[name] |