diff -r 1ea086bc2086 -r 3aeab7bb5adc mercurial/commands.py --- a/mercurial/commands.py Tue Aug 08 09:11:16 2006 -0500 +++ b/mercurial/commands.py Tue Aug 08 09:19:20 2006 -0500 @@ -2606,7 +2606,7 @@ if not opts.get('dry_run'): repo.dirstate.forget(forget[0]) - r = hg.revert(repo, node, update.has_key) + r = hg.revert(repo, node, update.has_key, wlock) repo.dirstate.update(add[0], 'a') repo.dirstate.update(undelete[0], 'n') repo.dirstate.update(remove[0], 'r')