# HG changeset patch # User Alexis S. L. Carvalho # Date 1182552209 10800 # Node ID 059bdc8dfb9da6a56bee98ffc29512c9c8452eca # Parent 826659bd8053318e2871a8ed3d3c8a2ab18a5179 transplant: fix locking order diff --git a/hgext/transplant.py b/hgext/transplant.py --- 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]