Comments
Patch
@@ -2730,6 +2730,18 @@ dest#branch URIs:
Set up a fake sendmail program
+#if windows
+ $ cat > $TESTTMP/t2/pretendmail.bat <<EOF
+ > @echo off
+ > echo %*
+ > cat
+ > EOF
+
+ $ cat >> $HGRCPATH <<EOF
+ > [email]
+ > method = $TESTTMP\t2\pretendmail.bat
+ > EOF
+#else
$ cat > pretendmail.sh << 'EOF'
> #!/bin/sh
> echo "$@"
@@ -2739,6 +2751,7 @@ Set up a fake sendmail program
$ echo '[email]' >> $HGRCPATH
$ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
+#endif
Test introduction configuration
=================================
@@ -2833,7 +2846,7 @@ single rev
(should be one of always, never, auto)
sending [PATCH] test ...
- sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
+ sending mail: $TESTTMP/t2/pretendmail.* -f test foo (glob)
-f test foo
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0