diff -r a210b40d0860 -r 3900f684a150 mercurial/commands.py --- a/mercurial/commands.py Sun May 13 19:15:54 2007 -0700 +++ b/mercurial/commands.py Thu May 17 09:29:30 2007 -0700 @@ -1565,7 +1565,7 @@ n = repo.commit(files, message, user, date, wlock=wlock, lock=lock) if opts.get('exact'): if hex(n) != nodeid: - repo.rollback() + repo.rollback(wlock=wlock, lock=lock) raise util.Abort(_('patch is damaged or loses information')) finally: os.unlink(tmpname)