[PATCH 1 of 2] tests: make a multi-statement hook in bundle2-exchange Windows compatible

Matt Harbison mharbison72 at gmail.com
Fri Dec 26 03:25:57 UTC 2014


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1419440879 18000
#      Wed Dec 24 12:07:59 2014 -0500
# Node ID 5cea028af80a7480776dba5376e87ed2d4a0e9e6
# Parent  67d63ec85eb72187508692e52f14be46101707a5
tests: make a multi-statement hook in bundle2-exchange Windows compatible

This is similar to the fix in 7dd1870120b2.

diff --git a/tests/test-bundle2-exchange.t b/tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t
+++ b/tests/test-bundle2-exchange.t
@@ -7,6 +7,11 @@
 
 enable obsolescence
 
+  $ cat > $TESTDIR/bundle2-pushkey-hook.sh << EOF
+  > echo pushkey: lock state after \"\$HG_NAMESPACE\"
+  > hg debuglock
+  > EOF
+
   $ cat >> $HGRCPATH << EOF
   > [experimental]
   > evolution=createmarkers,exchange
@@ -24,7 +29,7 @@
   > b2x-pretransactionclose.tip = hg log -r tip -T "pre-close-tip:{node|short} {phase} {bookmarks}\n"
   > b2x-transactionclose.tip = hg log -r tip -T "postclose-tip:{node|short} {phase} {bookmarks}\n"
   > b2x-transactionclose.env = sh -c  "HG_LOCAL= python \"$TESTDIR/printenv.py\" b2x-transactionclose"
-  > pushkey= echo pushkey: lock state after \"\$HG_NAMESPACE\"; hg debuglock
+  > pushkey= sh "$TESTDIR/bundle2-pushkey-hook.sh"
   > EOF
 
 The extension requires a repo (currently unused)


More information about the Mercurial-devel mailing list