changeset 4680:059bdc8dfb9d

transplant: fix locking order
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 22 Jun 2007 19:43:29 -0300
parents 826659bd8053
children dc5920ea12f8 51ec5e069505
files hgext/transplant.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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]