changeset 32019:bca8ad5c1256

test-tag: make hook runnable on Windows Simply setting the hook to *.sh causes Windows to open a dialog asking how to open *.sh files.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 16 Apr 2017 20:59:14 -0400
parents 090fff9b6d65
children acc67cd7f508
files tests/test-tag.t
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-tag.t	Sat Apr 15 02:54:36 2017 +0200
+++ b/tests/test-tag.t	Sun Apr 16 20:59:14 2017 -0400
@@ -2,7 +2,7 @@
   > [experimental]
   > hook-track-tags=1
   > [hooks]
-  > txnclose.track-tag=${TESTTMP}/taghook.sh
+  > txnclose.track-tag=sh ${TESTTMP}/taghook.sh
   > EOF
 
   $ cat << EOF > taghook.sh
@@ -14,7 +14,6 @@
   >     sed 's/^/hook: /' .hg/changes/tags.changes
   > fi
   > EOF
-  $ chmod +x taghook.sh
   $ hg init test
   $ cd test