--- a/mercurial/obsolete.py Sat Nov 25 16:01:27 2017 +0800
+++ b/mercurial/obsolete.py Sun Nov 19 05:23:12 2017 +0100
@@ -994,10 +994,10 @@
public = phases.public
cl = repo.changelog
torev = cl.nodemap.get
- for ctx in repo.set('(not public()) and (not obsolete())'):
- rev = ctx.rev()
+ tonode = cl.node
+ for rev in repo.revs('(not public()) and (not obsolete())'):
# We only evaluate mutable, non-obsolete revision
- node = ctx.node()
+ node = tonode(rev)
# (future) A cache of predecessors may worth if split is very common
for pnode in obsutil.allpredecessors(repo.obsstore, [node],
ignoreflags=bumpedfix):