# HG changeset patch # User Matt Mackall # Date 1322689015 21600 # Node ID 809d5d30e377eeb9e93f792bbf4c17af8568d4f2 # Parent 98ec09582f72dd6cfe7e0b8e233ef3fe135212b3 localrepo: rename _postrelease to _afterlock diff -r 98ec09582f72 -r 809d5d30e377 mercurial/localrepo.py --- 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()