convert: fix locking order
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Thu, 02 Aug 2007 01:56:08 -0300
changeset 5052 a11e8a181bd5
parent 5051 e3dffbdc6522
child 5053 47a8ea1eb2c3
convert: fix locking order
hgext/convert/hg.py
--- a/hgext/convert/hg.py	Thu Aug 02 01:56:08 2007 -0300
+++ b/hgext/convert/hg.py	Thu Aug 02 01:56:08 2007 -0300
@@ -27,8 +27,8 @@
         self.branchnames = ui.configbool('convert', 'hg.usebranchnames', True)
 
     def before(self):
+        self.wlock = self.repo.wlock()
         self.lock = self.repo.lock()
-        self.wlock = self.repo.wlock()
 
     def after(self):
         self.lock = None