Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 2812:3aeab7bb5adc
Refactor update locking slightly
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 08 Aug 2006 09:19:20 -0500 |
parents | 30f59f4a327e |
children | e78cad1f6b1f 2ff57e3113a4 |
line wrap: on
line diff
--- 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')