Mercurial > evolve
changeset 1019:0c733dab0036
prune: lock inside the try
tss…
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 06 Aug 2014 17:40:55 -0700 |
parents | 30262465b932 |
children | 155949287628 |
files | hgext/evolve.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 = []