transplant: fix locking order
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 22 Jun 2007 19:43:29 -0300
changeset 4680 059bdc8dfb9d
parent 4679 826659bd8053
child 4681 51ec5e069505
child 4682 dc5920ea12f8
transplant: fix locking order
hgext/transplant.py
--- a/hgext/transplant.py	Fri Jun 22 19:06:04 2007 -0300
+++ b/hgext/transplant.py	Fri Jun 22 19:43:29 2007 -0300
@@ -96,8 +96,8 @@
         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]