Show More
@@ -6,35 +6,59 b' Invalid syntax: no value' | |||||
6 | $ cat > .hg/hgrc << EOF |
|
6 | $ cat > .hg/hgrc << EOF | |
7 | > novaluekey |
|
7 | > novaluekey | |
8 | > EOF |
|
8 | > EOF | |
|
9 | #if chg | |||
|
10 | $ hg showconfig | |||
|
11 | config error at $TESTTMP/.hg/hgrc:1: novaluekey | |||
|
12 | [255] | |||
|
13 | #else | |||
9 | $ hg showconfig |
|
14 | $ hg showconfig | |
10 | config error at $TESTTMP/.hg/hgrc:1: novaluekey |
|
15 | config error at $TESTTMP/.hg/hgrc:1: novaluekey | |
11 | [30] |
|
16 | [30] | |
|
17 | #endif | |||
12 |
|
18 | |||
13 | Invalid syntax: no key |
|
19 | Invalid syntax: no key | |
14 |
|
20 | |||
15 | $ cat > .hg/hgrc << EOF |
|
21 | $ cat > .hg/hgrc << EOF | |
16 | > =nokeyvalue |
|
22 | > =nokeyvalue | |
17 | > EOF |
|
23 | > EOF | |
|
24 | #if chg | |||
|
25 | $ hg showconfig | |||
|
26 | config error at $TESTTMP/.hg/hgrc:1: =nokeyvalue | |||
|
27 | [255] | |||
|
28 | #else | |||
18 | $ hg showconfig |
|
29 | $ hg showconfig | |
19 | config error at $TESTTMP/.hg/hgrc:1: =nokeyvalue |
|
30 | config error at $TESTTMP/.hg/hgrc:1: =nokeyvalue | |
20 | [30] |
|
31 | [30] | |
|
32 | #endif | |||
21 |
|
33 | |||
22 | Test hint about invalid syntax from leading white space |
|
34 | Test hint about invalid syntax from leading white space | |
23 |
|
35 | |||
24 | $ cat > .hg/hgrc << EOF |
|
36 | $ cat > .hg/hgrc << EOF | |
25 | > key=value |
|
37 | > key=value | |
26 | > EOF |
|
38 | > EOF | |
|
39 | #if chg | |||
|
40 | $ hg showconfig | |||
|
41 | config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: key=value | |||
|
42 | [255] | |||
|
43 | #else | |||
27 | $ hg showconfig |
|
44 | $ hg showconfig | |
28 | config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: key=value |
|
45 | config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: key=value | |
29 | [30] |
|
46 | [30] | |
|
47 | #endif | |||
30 |
|
48 | |||
31 | $ cat > .hg/hgrc << EOF |
|
49 | $ cat > .hg/hgrc << EOF | |
32 | > [section] |
|
50 | > [section] | |
33 | > key=value |
|
51 | > key=value | |
34 | > EOF |
|
52 | > EOF | |
|
53 | #if chg | |||
|
54 | $ hg showconfig | |||
|
55 | config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: [section] | |||
|
56 | [255] | |||
|
57 | #else | |||
35 | $ hg showconfig |
|
58 | $ hg showconfig | |
36 | config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: [section] |
|
59 | config error at $TESTTMP/.hg/hgrc:1: unexpected leading whitespace: [section] | |
37 | [30] |
|
60 | [30] | |
|
61 | #endif | |||
38 |
|
62 | |||
39 | Reset hgrc |
|
63 | Reset hgrc | |
40 |
|
64 |
General Comments 0
You need to be logged in to leave comments.
Login now