obsolete: fix locking when enforcing obsolete as secret
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 07 Jan 2012 11:40:45 +0100
changeset 123 36b27bd12aef
parent 122 c75a73209f1e
child 124 c6af5921bb74
obsolete: fix locking when enforcing obsolete as secret
hgext/obsolete.py
--- a/hgext/obsolete.py	Sat Jan 07 11:33:20 2012 +0100
+++ b/hgext/obsolete.py	Sat Jan 07 11:40:45 2012 +0100
@@ -496,9 +496,9 @@
 
 
     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: