changeset 15587:809d5d30e377

localrepo: rename _postrelease to _afterlock
author Matt Mackall <mpm@selenic.com>
date Wed, 30 Nov 2011 15:36:55 -0600
parents 98ec09582f72
children 632f4be4d1f3
files mercurial/localrepo.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Nov 30 15:33:44 2011 -0600
+++ b/mercurial/localrepo.py	Wed Nov 30 15:36:55 2011 -0600
@@ -912,7 +912,7 @@
             acquirefn()
         return l
 
-    def _postrelease(self, callback):
+    def _afterlock(self, callback):
         """add a callback to the current repository lock.
 
         The callback will be executed on lock release."""
@@ -2011,7 +2011,7 @@
                     for n in added:
                         self.hook("incoming", node=hex(n), source=srctype,
                                   url=url)
-                self._postrelease(runhooks)
+                self._afterlock(runhooks)
 
         finally:
             tr.release()