Show More
@@ -1119,12 +1119,11 b' def clearobscaches(repo):' | |||||
1119 | def _computeobsoleteset(repo): |
|
1119 | def _computeobsoleteset(repo): | |
1120 | """the set of obsolete revisions""" |
|
1120 | """the set of obsolete revisions""" | |
1121 | obs = set() |
|
1121 | obs = set() | |
1122 |
get |
|
1122 | getnode = repo.changelog.node | |
1123 | getphase = repo._phasecache.phase |
|
1123 | notpublic = repo.revs("not public()") | |
1124 | for n in repo.obsstore.successors: |
|
1124 | for r in notpublic: | |
1125 | rev = getrev(n) |
|
1125 | if getnode(r) in repo.obsstore.successors: | |
1126 | if rev is not None and getphase(repo, rev): |
|
1126 | obs.add(r) | |
1127 | obs.add(rev) |
|
|||
1128 | return obs |
|
1127 | return obs | |
1129 |
|
1128 | |||
1130 | @cachefor('unstable') |
|
1129 | @cachefor('unstable') |
General Comments 0
You need to be logged in to leave comments.
Login now