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