--- a/hgext/obsolete.py Mon Dec 19 16:27:00 2011 +0100
+++ b/hgext/obsolete.py Thu Dec 22 15:26:42 2011 +0100
@@ -92,6 +92,7 @@
from mercurial import error
from mercurial import commands
from mercurial import changelog
+from mercurial import phases
from mercurial.node import hex, bin, short, nullid
from mercurial.lock import release
@@ -495,4 +496,12 @@
repo.__class__ = obsoletingrepo
+ obsoletes = [c.node() for c in repo.set('obsolete() - public()')]
+ lock = repo.lock()
+ if repo.ui.configbool('obsolete', 'secret-unstable', True):
+ try:
+ phases.retractboundary(repo, 2, obsoletes)
+ finally:
+ lock.release()
+