Show More
@@ -649,12 +649,13 b' def clearobscaches(repo):' | |||||
649 | def _computeobsoleteset(repo): |
|
649 | def _computeobsoleteset(repo): | |
650 | """the set of obsolete revisions""" |
|
650 | """the set of obsolete revisions""" | |
651 | obs = set() |
|
651 | obs = set() | |
652 |
|
|
652 | getrev = repo.changelog.nodemap.get | |
|
653 | getphase = repo._phasecache.phase | |||
653 | for node in repo.obsstore.successors: |
|
654 | for node in repo.obsstore.successors: | |
654 |
rev = |
|
655 | rev = getrev(node) | |
655 | if rev is not None: |
|
656 | if rev is not None and getphase(repo, rev): | |
656 | obs.add(rev) |
|
657 | obs.add(rev) | |
657 | return set(repo.revs('%ld - public()', obs)) |
|
658 | return obs | |
658 |
|
659 | |||
659 | @cachefor('unstable') |
|
660 | @cachefor('unstable') | |
660 | def _computeunstableset(repo): |
|
661 | def _computeunstableset(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now