# HG changeset patch # User Matt Harbison # Date 2014-11-17 03:03:57 # Node ID 7dd1870120b247915aa2d73869392f25c20b81cd # Parent bbe56e07e07abf2200233ccdc1480ce888d58d3b tests: move a multi-statement debuglocks hook into a shell script for Windows Before this patch, a part of "test-push-hook-lock.t" fails unexpectedly on Windows environment, because semicolon (";") isn't recognized as the command separator by "cmd.exe". This is fixed the same way as a similar issue in 7c253c23de3b. diff --git a/tests/test-push-hook-lock.t b/tests/test-push-hook-lock.t --- a/tests/test-push-hook-lock.t +++ b/tests/test-push-hook-lock.t @@ -15,8 +15,12 @@ updating to branch default 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ cat < $TESTTMP/debuglocks-pretxn-hook.sh + > hg debuglocks + > true + > EOF $ echo '[hooks]' >> 2/.hg/hgrc - $ echo 'pretxnchangegroup.a = hg debuglocks; true' >> 2/.hg/hgrc + $ echo "pretxnchangegroup.a = sh $TESTTMP/debuglocks-pretxn-hook.sh" >> 2/.hg/hgrc $ echo 'changegroup.push = hg push -qf ../1' >> 2/.hg/hgrc $ echo bar >> 3/foo