# HG changeset patch # User mpm@selenic.com # Date 1127529972 25200 # Node ID 88a9c75dc76a8ba1b04e957d71ecfd2f9131f9cf # Parent c5594ff3f95c714ca23cd6254512382a3f6efaef Execute hooks in the repository root diff -r c5594ff3f95c -r 88a9c75dc76a mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Sep 23 19:41:45 2005 -0700 +++ b/mercurial/localrepo.py Fri Sep 23 19:46:12 2005 -0700 @@ -55,7 +55,11 @@ old[k] = os.environ.get(k, None) os.environ[k] = v + # Hooks run in the repository root + olddir = os.getcwd() + os.chdir(self.root) r = os.system(s) + os.chdir(olddir) for k, v in old.items(): if v != None: