changeset 1968:37dd4928d042

merge with crew.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 17 Mar 2006 09:49:28 -0800
parents 72f7a335b955 (diff) f8b0e73e320f (current diff)
children 6d17d420c46c
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Mar 17 18:19:05 2006 +0100
+++ b/mercurial/localrepo.py	Fri Mar 17 09:49:28 2006 -0800
@@ -54,7 +54,8 @@
     def hook(self, name, throw=False, **args):
         def runhook(name, cmd):
             self.ui.note(_("running hook %s: %s\n") % (name, cmd))
-            env = dict([('HG_' + k.upper(), v) for k, v in args.iteritems()])
+            env = dict([('HG_' + k.upper(), v) for k, v in args.iteritems()] +
+                       [(k.upper(), v) for k, v in args.iteritems()])
             r = util.system(cmd, environ=env, cwd=self.root)
             if r:
                 desc, r = util.explain_exit(r)