comparison tests/test-tag.t @ 23951:42f3042cc17f stable

tests: invoke hg command indirectly from shell script to run on Windows Before this patch, test-tag.t can't run successfully on Windows, because: - quoted hg command ('"hg"') prevents "hg.bat" from working correctly (only at testing with pure Python build) "%~f0" and "%~dp0hg" in "hg.bat" cause unexpected result in this case. BTW, quoted "\path\to\hg" works correctly. - "`pwd`" in the command line is expanded unexpectedly not "C:\path\to\TESTTMP" but "C;C:\path\to\TESTTMP"
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 22 Jan 2015 00:08:13 +0900
parents e53f6b72a0e4
children 24cda1dd45ff
comparison
equal deleted inserted replaced
23950:caff3675cba5 23951:42f3042cc17f
393 $ hg init repo-tag 393 $ hg init repo-tag
394 $ touch repo-tag/test 394 $ touch repo-tag/test
395 $ hg -R repo-tag commit -A -m "test" 395 $ hg -R repo-tag commit -A -m "test"
396 adding test 396 adding test
397 $ hg init repo-tag-target 397 $ hg init repo-tag-target
398 $ hg -R repo-tag --config hooks.commit="\"hg\" push \"`pwd`/repo-tag-target\"" tag tag 398 $ cat > "$TESTTMP/issue3344.sh" <<EOF
399 > hg push "$TESTTMP/repo-tag-target"
400 > EOF
401 $ hg -R repo-tag --config hooks.commit="sh ../issue3344.sh" tag tag
399 pushing to $TESTTMP/repo-tag-target (glob) 402 pushing to $TESTTMP/repo-tag-target (glob)
400 searching for changes 403 searching for changes
401 adding changesets 404 adding changesets
402 adding manifests 405 adding manifests
403 adding file changes 406 adding file changes