Show More
@@ -1309,11 +1309,15 b' def clearobscaches(repo):' | |||
|
1309 | 1309 | if 'obsstore' in repo._filecache: |
|
1310 | 1310 | repo.obsstore.caches.clear() |
|
1311 | 1311 | |
|
1312 | def _mutablerevs(repo): | |
|
1313 | """the set of mutable revision in the repository""" | |
|
1314 | return repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) | |
|
1315 | ||
|
1312 | 1316 | @cachefor('obsolete') |
|
1313 | 1317 | def _computeobsoleteset(repo): |
|
1314 | 1318 | """the set of obsolete revisions""" |
|
1315 | 1319 | getnode = repo.changelog.node |
|
1316 | notpublic = repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) | |
|
1320 | notpublic = _mutablerevs(repo) | |
|
1317 | 1321 | isobs = repo.obsstore.successors.__contains__ |
|
1318 | 1322 | obs = set(r for r in notpublic if isobs(getnode(r))) |
|
1319 | 1323 | return obs |
General Comments 0
You need to be logged in to leave comments.
Login now