--- 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()