Skip to content
Snippets Groups Projects
Commit f9b2d996ffa5 authored by Matt Harbison's avatar Matt Harbison
Browse files

hook: only print the note about native cmd translation if it actually changes

This makes it so that it will never occur on a non Windows platform.
parent 2009d84f245a
No related branches found
No related tags found
No related merge requests found
......@@ -140,5 +140,5 @@
env['HG_' + k.upper()] = v
if ui.configbool('hooks', 'tonative.%s' % name, False):
ui.note(_('converting hook "%s" to native\n') % name)
oldcmd = cmd
cmd = procutil.shelltonative(cmd, env)
......@@ -144,4 +144,6 @@
cmd = procutil.shelltonative(cmd, env)
if cmd != oldcmd:
ui.note(_('converting hook "%s" to native\n') % name)
ui.note(_("running hook %s: %s\n") % (name, cmd))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment