diff -r 1e701ffd9df4 -r 5116a077c3da hgext/mq.py --- a/hgext/mq.py Sat May 29 20:32:39 2010 +0200 +++ b/hgext/mq.py Thu May 27 17:47:40 2010 +0200 @@ -613,8 +613,7 @@ repo.dirstate.invalidate() raise finally: - del tr - release(lock, wlock) + release(tr, lock, wlock) self.removeundo(repo) def _apply(self, repo, series, list=False, update_status=True,