mercurial/obsolete.py
changeset 44452 9d2b2df2c2ba
parent 44060 a61287a95dc3
child 45463 145cfe84d3e4
equal deleted inserted replaced
44449:ff72bd52d56a 44452:9d2b2df2c2ba
   937 def _computeobsoleteset(repo):
   937 def _computeobsoleteset(repo):
   938     """the set of obsolete revisions"""
   938     """the set of obsolete revisions"""
   939     getnode = repo.changelog.node
   939     getnode = repo.changelog.node
   940     notpublic = _mutablerevs(repo)
   940     notpublic = _mutablerevs(repo)
   941     isobs = repo.obsstore.successors.__contains__
   941     isobs = repo.obsstore.successors.__contains__
   942     obs = set(r for r in notpublic if isobs(getnode(r)))
   942     obs = {r for r in notpublic if isobs(getnode(r))}
   943     return obs
   943     return obs
   944 
   944 
   945 
   945 
   946 @cachefor(b'orphan')
   946 @cachefor(b'orphan')
   947 def _computeorphanset(repo):
   947 def _computeorphanset(repo):
   963 
   963 
   964 @cachefor(b'suspended')
   964 @cachefor(b'suspended')
   965 def _computesuspendedset(repo):
   965 def _computesuspendedset(repo):
   966     """the set of obsolete parents with non obsolete descendants"""
   966     """the set of obsolete parents with non obsolete descendants"""
   967     suspended = repo.changelog.ancestors(getrevs(repo, b'orphan'))
   967     suspended = repo.changelog.ancestors(getrevs(repo, b'orphan'))
   968     return set(r for r in getrevs(repo, b'obsolete') if r in suspended)
   968     return {r for r in getrevs(repo, b'obsolete') if r in suspended}
   969 
   969 
   970 
   970 
   971 @cachefor(b'extinct')
   971 @cachefor(b'extinct')
   972 def _computeextinctset(repo):
   972 def _computeextinctset(repo):
   973     """the set of obsolete parents without non obsolete descendants"""
   973     """the set of obsolete parents without non obsolete descendants"""