mercurial/obsolete.py
changeset 44452 9d2b2df2c2ba
parent 44060 a61287a95dc3
child 45463 145cfe84d3e4
--- a/mercurial/obsolete.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/obsolete.py	Fri Mar 06 13:27:41 2020 -0500
@@ -939,7 +939,7 @@
     getnode = repo.changelog.node
     notpublic = _mutablerevs(repo)
     isobs = repo.obsstore.successors.__contains__
-    obs = set(r for r in notpublic if isobs(getnode(r)))
+    obs = {r for r in notpublic if isobs(getnode(r))}
     return obs
 
 
@@ -965,7 +965,7 @@
 def _computesuspendedset(repo):
     """the set of obsolete parents with non obsolete descendants"""
     suspended = repo.changelog.ancestors(getrevs(repo, b'orphan'))
-    return set(r for r in getrevs(repo, b'obsolete') if r in suspended)
+    return {r for r in getrevs(repo, b'obsolete') if r in suspended}
 
 
 @cachefor(b'extinct')