hgext/shelve.py
changeset 24704 03f92741487f
parent 24478 95cbc77c0cad
child 24872 3510ec97ffdc
--- a/hgext/shelve.py	Sun Apr 12 14:54:53 2015 -0400
+++ b/hgext/shelve.py	Sun Apr 12 14:59:31 2015 -0400
@@ -544,8 +544,8 @@
     oldquiet = ui.quiet
     wlock = lock = tr = None
     try:
+        wlock = repo.wlock()
         lock = repo.lock()
-        wlock = repo.wlock()
 
         tr = repo.transaction('unshelve', report=lambda x: None)
         oldtiprev = len(repo)