# HG changeset patch # User Pierre-Yves David # Date 1407371972 25200 # Node ID 30262465b932640cc7e15736f86f24e766329410 # Parent 186b72e41294f96458eb6a54ed739e4fb3df7feb debugrecordpruneparents: release tr the same way than the lock Nicer code is nicer. diff -r 186b72e41294 -r 30262465b932 hgext/evolve.py --- a/hgext/evolve.py Wed Aug 06 17:37:28 2014 -0700 +++ b/hgext/evolve.py Wed Aug 06 17:39:32 2014 -0700 @@ -1024,9 +1024,7 @@ tr.close() ui.progress(pgop, None) finally: - if tr is not None: - tr.release() - lockmod.release(lock, wlock) + lockmod.release(tr, lock, wlock) @command('debugobsstorestat', [], '') def cmddebugobsstorestat(ui, repo):