mercurial/obsolete.py
changeset 18276 834ef7e70d0f
parent 18275 9818f22785b7
child 18277 a58260bc101f
--- a/mercurial/obsolete.py	Fri Jan 04 03:15:21 2013 +0100
+++ b/mercurial/obsolete.py	Fri Jan 04 03:15:44 2013 +0100
@@ -671,7 +671,8 @@
 @cachefor('suspended')
 def _computesuspendedset(repo):
     """the set of obsolete parents with non obsolete descendants"""
-    return set(repo.revs('obsolete() and obsolete()::unstable()'))
+    suspended = repo.changelog.ancestors(getrevs(repo, 'unstable'))
+    return set(r for r in getrevs(repo, 'obsolete') if r in suspended)
 
 @cachefor('extinct')
 def _computeextinctset(repo):