Show More
@@ -1,58 +1,57 b'' | |||||
1 | test command parsing and dispatch |
|
1 | test command parsing and dispatch | |
2 |
|
2 | |||
3 | $ hg init a |
|
3 | $ hg init a | |
4 | $ cd a |
|
4 | $ cd a | |
5 |
|
5 | |||
6 | Redundant options used to crash (issue436): |
|
6 | Redundant options used to crash (issue436): | |
7 | $ hg -v log -v |
|
7 | $ hg -v log -v | |
8 | $ hg -v log -v x |
|
8 | $ hg -v log -v x | |
9 |
|
9 | |||
10 | $ echo a > a |
|
10 | $ echo a > a | |
11 | $ hg ci -Ama |
|
11 | $ hg ci -Ama | |
12 | adding a |
|
12 | adding a | |
13 |
|
13 | |||
14 | Missing arg: |
|
14 | Missing arg: | |
15 |
|
15 | |||
16 | $ hg cat |
|
16 | $ hg cat | |
17 | hg cat: invalid arguments |
|
17 | hg cat: invalid arguments | |
18 | hg cat [OPTION]... FILE... |
|
18 | hg cat [OPTION]... FILE... | |
19 |
|
19 | |||
20 | output the current or given revision of files |
|
20 | output the current or given revision of files | |
21 |
|
21 | |||
22 | options: |
|
22 | options: | |
23 |
|
23 | |||
24 | -o --output FORMAT print output to file with formatted name |
|
24 | -o --output FORMAT print output to file with formatted name | |
25 | -r --rev REV print the given revision |
|
25 | -r --rev REV print the given revision | |
26 | --decode apply any matching decode filter |
|
26 | --decode apply any matching decode filter | |
27 | -I --include PATTERN [+] include names matching the given patterns |
|
27 | -I --include PATTERN [+] include names matching the given patterns | |
28 | -X --exclude PATTERN [+] exclude names matching the given patterns |
|
28 | -X --exclude PATTERN [+] exclude names matching the given patterns | |
29 |
|
29 | |||
30 | [+] marked option can be specified multiple times |
|
30 | [+] marked option can be specified multiple times | |
31 |
|
31 | |||
32 | use "hg help cat" to show the full help text |
|
32 | use "hg help cat" to show the full help text | |
33 | [255] |
|
33 | [255] | |
34 |
|
34 | |||
35 | [defaults] |
|
35 | [defaults] | |
36 |
|
36 | |||
37 | $ hg cat a |
|
37 | $ hg cat a | |
38 | a |
|
38 | a | |
39 | $ cat >> $HGRCPATH <<EOF |
|
39 | $ cat >> $HGRCPATH <<EOF | |
40 | > [defaults] |
|
40 | > [defaults] | |
41 | > cat = -r null |
|
41 | > cat = -r null | |
42 | > EOF |
|
42 | > EOF | |
43 | $ hg cat a |
|
43 | $ hg cat a | |
44 | a: no such file in rev 000000000000 |
|
44 | a: no such file in rev 000000000000 | |
45 | [1] |
|
45 | [1] | |
46 |
|
46 | |||
47 | $ cd "$TESTTMP" |
|
47 | $ cd "$TESTTMP" | |
48 |
|
48 | |||
49 | #if no-outer-repo |
|
49 | #if no-outer-repo | |
50 |
|
50 | |||
51 | No repo: |
|
51 | No repo: | |
52 |
|
52 | |||
53 | $ cd $dir |
|
|||
54 | $ hg cat |
|
53 | $ hg cat | |
55 | abort: no repository found in '$TESTTMP' (.hg not found)! |
|
54 | abort: no repository found in '$TESTTMP' (.hg not found)! | |
56 | [255] |
|
55 | [255] | |
57 |
|
56 | |||
58 | #endif |
|
57 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now