Mercurial > public > mercurial-scm > hg-stable
diff tests/test-patchbomb @ 9346:bb3f8f692bc6
patchbomb: add --flag to put flags in subject prefixes
--flag foo uses:
[PATCH foo]
or
[PATCH M of N foo]
depending on the number of patches.
Multiple flags are supported: --flag foo --flag bar gives [PATCH foo bar]
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 11:26:47 +0900 |
parents | 252232621165 |
children | d051db8e9e44 |
line wrap: on
line diff
--- a/tests/test-patchbomb Wed Aug 12 12:07:11 2009 -0500 +++ b/tests/test-patchbomb Wed Jul 15 11:26:47 2009 +0900 @@ -151,3 +151,19 @@ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ -r 0:1 | fixheaders + +echo "% test single flag for single patch" +hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \ + -r 2 | fixheaders + +echo "% test single flag for multiple patches" +hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \ + -r 0:1 | fixheaders + +echo "% test mutiple flags for single patch" +hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \ + -c bar -s test -r 2 | fixheaders + +echo "% test multiple flags for multiple patches" +hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \ + -c bar -s test -r 0:1 | fixheaders