mercurial/commands.py
changeset 2826 3aeab7bb5adc
parent 2822 30f59f4a327e
child 2835 2ff57e3113a4
child 2848 e78cad1f6b1f
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2606,7 +2606,7 @@ def revert(ui, repo, *pats, **opts):
 
     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')