fix minor bugs in localrepo.hook.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Wed, 03 May 2006 11:00:24 -0700
changeset 2190 b67fcd91dd1b
parent 2189 e3eba577a0ae
child 2191 c2e43535d4d1
fix minor bugs in localrepo.hook.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed May 03 10:25:28 2006 -0700
+++ b/mercurial/localrepo.py	Wed May 03 11:00:24 2006 -0700
@@ -105,7 +105,7 @@
                                    '("%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: