Mercurial > hg
comparison tests/test-tag.t @ 12365:22f3353bcc36
tests: cleanup exit code handling in unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 21 Sep 2010 16:00:02 -0500 |
parents | 4134686b83e1 |
children | 4fee1fd3de9a |
comparison
equal
deleted
inserted
replaced
12364:e128fa4615f2 | 12365:22f3353bcc36 |
---|---|
30 date: Thu Jan 01 00:00:00 1970 +0000 | 30 date: Thu Jan 01 00:00:00 1970 +0000 |
31 summary: test | 31 summary: test |
32 | 32 |
33 | 33 |
34 $ echo foo >> .hgtags | 34 $ echo foo >> .hgtags |
35 $ hg tag "bleah2" || echo "failed" | 35 $ hg tag "bleah2" |
36 abort: working copy of .hgtags is changed (please commit .hgtags manually) | 36 abort: working copy of .hgtags is changed (please commit .hgtags manually) |
37 failed | 37 [255] |
38 | 38 |
39 $ hg revert .hgtags | 39 $ hg revert .hgtags |
40 $ hg tag -r 0 x y z y y z || echo "failed" | 40 $ hg tag -r 0 x y z y y z |
41 abort: tag names must be unique | 41 abort: tag names must be unique |
42 failed | 42 [255] |
43 $ hg tag tap nada dot tip null . || echo "failed" | 43 $ hg tag tap nada dot tip null . |
44 abort: the name 'tip' is reserved | 44 abort: the name 'tip' is reserved |
45 failed | 45 [255] |
46 $ hg tag "bleah" || echo "failed" | 46 $ hg tag "bleah" |
47 abort: tag 'bleah' already exists (use -f to force) | 47 abort: tag 'bleah' already exists (use -f to force) |
48 failed | 48 [255] |
49 $ hg tag "blecch" "bleah" || echo "failed" | 49 $ hg tag "blecch" "bleah" |
50 abort: tag 'bleah' already exists (use -f to force) | 50 abort: tag 'bleah' already exists (use -f to force) |
51 failed | 51 [255] |
52 | 52 |
53 $ hg tag --remove "blecch" || echo "failed" | 53 $ hg tag --remove "blecch" |
54 abort: tag 'blecch' does not exist | 54 abort: tag 'blecch' does not exist |
55 failed | 55 [255] |
56 $ hg tag --remove "bleah" "blecch" "blough" || echo "failed" | 56 $ hg tag --remove "bleah" "blecch" "blough" |
57 abort: tag 'blecch' does not exist | 57 abort: tag 'blecch' does not exist |
58 failed | 58 [255] |
59 | 59 |
60 $ hg tag -r 0 "bleah0" | 60 $ hg tag -r 0 "bleah0" |
61 $ hg tag -l -r 1 "bleah1" | 61 $ hg tag -l -r 1 "bleah1" |
62 $ hg tag gack gawk gorp | 62 $ hg tag gack gawk gorp |
63 $ hg tag -f gack | 63 $ hg tag -f gack |