# HG changeset patch # User Vadim Gelfer # Date 2006-05-03 18:00:24 # Node ID b67fcd91dd1b7c5a44ec021c86e9c0242884c337 # Parent e3eba577a0ae4338c301cc6cd915016961db61ea fix minor bugs in localrepo.hook. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -105,7 +105,7 @@ class localrepository(object): '("%s" is not callable)') % (hname, funcname)) try: - r = obj(ui=ui, repo=repo, hooktype=name, **args) + r = obj(ui=self.ui, repo=self, hooktype=name, **args) except (KeyboardInterrupt, util.SignalInterrupt): raise except Exception, exc: