diff mercurial/lock.py @ 15589:cc24e4ed3e0c

lock: change name of release chain
author Matt Mackall <mpm@selenic.com>
date Wed, 30 Nov 2011 16:53:44 -0600
parents 926a06f7a353
children e7cfe3587ea4 7c44b703657b 829919ef894a
line wrap: on
line diff
--- a/mercurial/lock.py	Wed Nov 30 16:20:07 2011 -0600
+++ b/mercurial/lock.py	Wed Nov 30 16:53:44 2011 -0600
@@ -35,7 +35,7 @@
         self.timeout = timeout
         self.releasefn = releasefn
         self.desc = desc
-        self.postreleasehooks  = []
+        self.postrelease  = []
         self.lock()
 
     def __del__(self):
@@ -134,11 +134,10 @@
                 util.unlink(self.f)
             except OSError:
                 pass
-            for callback in self.postreleasehooks:
+            for callback in self.postrelease:
                 callback()
 
 def release(*locks):
     for lock in locks:
         if lock is not None:
             lock.release()
-