changeset 123:36b27bd12aef

obsolete: fix locking when enforcing obsolete as secret
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sat, 07 Jan 2012 11:40:45 +0100
parents c75a73209f1e
children c6af5921bb74
files hgext/obsolete.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: