# HG changeset patch # User Pierre-Yves David # Date 1325932845 -3600 # Node ID 36b27bd12aef5e8cd8c96fcb927821e4587782f5 # Parent c75a73209f1eb614ccdb292fa253e3a04fa93dff obsolete: fix locking when enforcing obsolete as secret diff -r c75a73209f1e -r 36b27bd12aef 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: