diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2871,6 +2871,7 @@ def dispatch(args): 'anyway\n')) except: pass + raise finally: prof.close() stats = hotshot.stats.load("hg.prof")