##// END OF EJS Templates
still use old variable names when running hooks. dropped by accident....
Vadim Gelfer -
r1967:72f7a335 default
parent child Browse files
Show More
@@ -54,7 +54,8 b' class localrepository(object):'
54 def hook(self, name, throw=False, **args):
54 def hook(self, name, throw=False, **args):
55 def runhook(name, cmd):
55 def runhook(name, cmd):
56 self.ui.note(_("running hook %s: %s\n") % (name, cmd))
56 self.ui.note(_("running hook %s: %s\n") % (name, cmd))
57 env = dict([('HG_' + k.upper(), v) for k, v in args.iteritems()])
57 env = dict([('HG_' + k.upper(), v) for k, v in args.iteritems()] +
58 [(k.upper(), v) for k, v in args.iteritems()])
58 r = util.system(cmd, environ=env, cwd=self.root)
59 r = util.system(cmd, environ=env, cwd=self.root)
59 if r:
60 if r:
60 desc, r = util.explain_exit(r)
61 desc, r = util.explain_exit(r)
General Comments 0
You need to be logged in to leave comments. Login now