Submitter | Matt Harbison |
---|---|
Date | July 16, 2018, 9:31 p.m. |
Message ID | <48070b1bc067ac31924c.1531776693@mharbison-pc.attotech.com> |
Download | mbox | patch |
Permalink | /patch/32878/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/hook.py b/mercurial/hook.py --- a/mercurial/hook.py +++ b/mercurial/hook.py @@ -140,8 +140,10 @@ def _exthook(ui, repo, htype, name, cmd, 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) + if cmd != oldcmd: + ui.note(_('converting hook "%s" to native\n') % name) ui.note(_("running hook %s: %s\n") % (name, cmd))