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