Commits

Pierre-Yves David committed 36b27bd

obsolete: fix locking when enforcing obsolete as secret

Comments (0)

Files changed (1)

hgext/obsolete.py

 
 
     repo.__class__ = obsoletingrepo
-    obsoletes = [c.node() for c in repo.set('obsolete() - public()')]
-    lock = repo.lock()
     if repo.ui.configbool('obsolete', 'secret-unstable', True):
+        obsoletes = [c.node() for c in repo.set('obsolete()')]
+        lock = repo.lock()
         try:
             phases.retractboundary(repo, 2, obsoletes)
         finally: