diff -r 1f3acc30bdfe -r c2d9ef43ff6c mercurial/commands.py --- a/mercurial/commands.py Sun May 13 13:17:50 2012 +0200 +++ b/mercurial/commands.py Sun May 13 13:18:06 2012 +0200 @@ -3775,7 +3775,7 @@ tr.close() if msgs: repo.savecommitmessage('\n* * *\n'.join(msgs)) - except: + except: # re-raises # wlock.release() indirectly calls dirstate.write(): since # we're crashing, we do not want to change the working dir # parent after all, so make sure it writes nothing