##// END OF EJS Templates
test-config: add tests for invalid syntax...
Pierre-Yves David -
r22275:d9a8017d default
parent child Browse files
Show More
@@ -1,6 +1,28 b''
1 hide outer repo
1 hide outer repo
2 $ hg init
2 $ hg init
3
3
4 Invalid syntax: no value
5
6 $ cat > .hg/hgrc << EOF
7 > novaluekey
8 > EOF
9 $ hg showconfig
10 hg: parse error at $TESTTMP/.hg/hgrc:1: novaluekey
11 [255]
12
13 Invalid syntax: no key
14
15 $ cat > .hg/hgrc << EOF
16 > =nokeyvalue
17 > EOF
18 $ hg showconfig
19 hg: parse error at $TESTTMP/.hg/hgrc:1: =nokeyvalue
20 [255]
21
22 Reset hgrc
23
24 $ echo > .hg/hgrc
25
4 Test case sensitive configuration
26 Test case sensitive configuration
5
27
6 $ echo '[Section]' >> $HGRCPATH
28 $ echo '[Section]' >> $HGRCPATH
General Comments 0
You need to be logged in to leave comments. Login now