# HG changeset patch # User Matt Harbison # Date 1498936389 14400 # Node ID 4b0da963586d326b352f929ae55935eff49eadd5 # Parent 0830c841fc7f20bb7d82c1f6571be4a3afd3e0b2 test-rebase-interruptions: stabilize for Windows External hooks end up launching cmd.exe, which knows nothing about $VAR syntax. For some reason, I thought that Mercurial would substitute in the value, in order to paper over the platform difference. But I can't find that in the documentation, and there's at least one other use of this pattern [1]. [1] https://www.mercurial-scm.org/repo/hg/file/tip/tests/test-histedit-fold.t#l477 diff -r 0830c841fc7f -r 4b0da963586d tests/test-rebase-interruptions.t --- a/tests/test-rebase-interruptions.t Fri Jun 30 23:15:09 2017 -0700 +++ b/tests/test-rebase-interruptions.t Sat Jul 01 15:13:09 2017 -0400 @@ -333,7 +333,12 @@ $ cp -R a3 hook-pretxncommit $ cd hook-pretxncommit - $ hg rebase --source 2 --dest 5 --tool internal:other --config 'hooks.pretxncommit=hg log -r $HG_NODE | grep "summary: C"' +#if windows + $ NODE="%HG_NODE%" +#else + $ NODE="\$HG_NODE" +#endif + $ hg rebase --source 2 --dest 5 --tool internal:other --config "hooks.pretxncommit=hg log -r $NODE | grep \"summary: C\"" rebasing 2:965c486023db "C" summary: C rebasing 6:a0b2430ebfb8 "F" (tip)