Mercurial > hg
comparison tests/test-patchbomb @ 10734:7a0502a6f9a1
patchbomb: --desc implies --intro
For a single patch, an introductory text should not remain unsent
if --intro has been omitted, as the intent of --desc is clear.
author | Cédric Duval <cedricduval@free.fr> |
---|---|
date | Mon, 15 Mar 2010 22:37:38 +0100 |
parents | a9c0d6060827 |
children | f66ca4431eb9 |
comparison
equal
deleted
inserted
replaced
10731:71cf11f03b3d | 10734:7a0502a6f9a1 |
---|---|
124 | 124 |
125 echo "% test intro for single patch" | 125 echo "% test intro for single patch" |
126 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ | 126 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ |
127 -r 2 | fixheaders | 127 -r 2 | fixheaders |
128 | 128 |
129 echo "% test --desc without --intro for a single patch" | |
130 echo foo > intro.text | |
131 hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \ | |
132 -s test -r 2 | fixheaders | |
133 | |
129 echo "% test intro for multiple patches" | 134 echo "% test intro for multiple patches" |
130 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ | 135 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ |
131 -r 0:1 | fixheaders | 136 -r 0:1 | fixheaders |
132 | 137 |
133 echo "% tagging csets" | 138 echo "% tagging csets" |