##// END OF EJS Templates
hook: only print the note about native cmd translation if it actually changes...
Matt Harbison -
r38746:f9b2d996 default
parent child Browse files
Show More
@@ -140,8 +140,10 b' def _exthook(ui, repo, htype, name, cmd,'
140 env['HG_' + k.upper()] = v
140 env['HG_' + k.upper()] = v
141
141
142 if ui.configbool('hooks', 'tonative.%s' % name, False):
142 if ui.configbool('hooks', 'tonative.%s' % name, False):
143 ui.note(_('converting hook "%s" to native\n') % name)
143 oldcmd = cmd
144 cmd = procutil.shelltonative(cmd, env)
144 cmd = procutil.shelltonative(cmd, env)
145 if cmd != oldcmd:
146 ui.note(_('converting hook "%s" to native\n') % name)
145
147
146 ui.note(_("running hook %s: %s\n") % (name, cmd))
148 ui.note(_("running hook %s: %s\n") % (name, cmd))
147
149
General Comments 0
You need to be logged in to leave comments. Login now