Show More
@@ -1277,12 +1277,10 b' def clearobscaches(repo):' | |||
|
1277 | 1277 | @cachefor('obsolete') |
|
1278 | 1278 | def _computeobsoleteset(repo): |
|
1279 | 1279 | """the set of obsolete revisions""" |
|
1280 | obs = set() | |
|
1281 | 1280 | getnode = repo.changelog.node |
|
1282 | 1281 | notpublic = repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) |
|
1283 | for r in notpublic: | |
|
1284 | if getnode(r) in repo.obsstore.successors: | |
|
1285 | obs.add(r) | |
|
1282 | isobs = repo.obsstore.successors.__contains__ | |
|
1283 | obs = set(r for r in notpublic if isobs(getnode(r))) | |
|
1286 | 1284 | return obs |
|
1287 | 1285 | |
|
1288 | 1286 | @cachefor('unstable') |
General Comments 0
You need to be logged in to leave comments.
Login now