hgext/transplant.py
changeset 4680 059bdc8dfb9d
parent 4635 63b9d2deed48
child 4959 97b734fb9c6f
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -96,8 +96,8 @@ class transplanter:
         diffopts = patch.diffopts(self.ui, opts)
         diffopts.git = True
 
+        wlock = repo.wlock()
         lock = repo.lock()
-        wlock = repo.wlock()
         try:
             for rev in revs:
                 node = revmap[rev]