mercurial/merge.py
changeset 4917 126f527b3ba3
parent 4915 97b734fb9c6f
child 4999 54ff1bb4b53a
--- a/mercurial/merge.py	Sat Jul 21 16:02:10 2007 -0500
+++ b/mercurial/merge.py	Sat Jul 21 16:02:10 2007 -0500
@@ -496,20 +496,17 @@
                 if f:
                     repo.dirstate.forget(f)
 
-def update(repo, node, branchmerge, force, partial, wlock):
+def update(repo, node, branchmerge, force, partial):
     """
     Perform a merge between the working directory and the given node
 
     branchmerge = whether to merge between branches
     force = whether to force branch merging or file overwriting
     partial = a function to filter file lists (dirstate not updated)
-    wlock = working dir lock, if already held
     """
 
+    wlock = repo.wlock()
     try:
-        if not wlock:
-            wlock = repo.wlock()
-
         wc = repo.workingctx()
         if node is None:
             # tip of current branch