[PATCH 1 of 3] test-tag: make hook runnable on Windows

Matt Harbison mharbison72 at gmail.com
Mon Apr 17 01:35:58 UTC 2017


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1492390754 14400
#      Sun Apr 16 20:59:14 2017 -0400
# Node ID 85faa957af5a8aad904fdadaf38e1b0de366ed2c
# Parent  25146c0366d4f497be856a35c078ede207bbee87
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.

diff --git a/tests/test-tag.t b/tests/test-tag.t
--- a/tests/test-tag.t
+++ b/tests/test-tag.t
@@ -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
 


More information about the Mercurial-devel mailing list