mercurial/localrepo.py
changeset 15587 809d5d30e377
parent 15586 98ec09582f72
child 15588 632f4be4d1f3
--- 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()