diff mercurial/commands.py @ 2826:3aeab7bb5adc

Refactor update locking slightly
author Matt Mackall <mpm@selenic.com>
date Tue, 08 Aug 2006 09:19:20 -0500
parents 30f59f4a327e
children 2ff57e3113a4 e78cad1f6b1f
line wrap: on
line diff
--- 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')