# HG changeset patch # User Pierre-Yves David # Date 1407372055 25200 # Node ID 0c733dab0036a4cda47836f3a3aab9353eff0bf9 # Parent 30262465b932640cc7e15736f86f24e766329410 prune: lock inside the try tss… diff -r 30262465b932 -r 0c733dab0036 hgext/evolve.py --- a/hgext/evolve.py Wed Aug 06 17:39:32 2014 -0700 +++ b/hgext/evolve.py Wed Aug 06 17:40:55 2014 -0700 @@ -1754,9 +1754,9 @@ raise util.Abort(_('nothing to prune')) wlock = lock = None - wlock = repo.wlock() - sortedrevs = lambda specs: sorted(set(scmutil.revrange(repo, specs))) try: + wlock = repo.wlock() + sortedrevs = lambda specs: sorted(set(scmutil.revrange(repo, specs))) lock = repo.lock() # defines pruned changesets precs = []