##// END OF EJS Templates
test-hgrc: cleanup...
Martin Geisler -
r10043:e95f0f70 default
parent child Browse files
Show More
@@ -1,24 +1,20 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 mkdir t
3 echo "invalid" > $HGRCPATH
4 cd t
4 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
5 hg init
5 echo "" > $HGRCPATH
6 echo "invalid" > .hg/hgrc
7 hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:"
8
6
9 #issue 1199, escaping
7 # issue1199: escaping
10
11 cd ..
12 hg init "foo%bar"
8 hg init "foo%bar"
13 hg clone "foo%bar" foobar
9 hg clone "foo%bar" foobar
14 p=`pwd`
10 p=`pwd`
15 cd foobar
11 cd foobar
16 cat .hg/hgrc |sed -e "s:$p:...:"
12 cat .hg/hgrc | sed -e "s:$p:...:"
17 hg paths |sed -e "s:$p:...:"
13 hg paths | sed -e "s:$p:...:"
18 hg showconfig |sed -e "s:$p:...:"
14 hg showconfig | sed -e "s:$p:...:"
15 cd ..
19
16
20 # issue1829: wrong indentation
17 # issue1829: wrong indentation
21 cd ..
18 echo '[foo]' > $HGRCPATH
22 echo '[foo]' >> $HGRCPATH
23 echo ' x = y' >> $HGRCPATH
19 echo ' x = y' >> $HGRCPATH
24 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
20 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
@@ -1,13 +1,9 b''
1 hg: config error at .../t/.hg/hgrc:1: 'invalid'
1 hg: config error at $HGRCPATH:1: 'invalid'
2 updating to branch default
2 updating to branch default
3 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
3 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 [paths]
4 [paths]
5 default = .../foo%bar
5 default = .../foo%bar
6 default = .../foo%bar
6 default = .../foo%bar
7 bundle.mainreporoot=.../foobar
7 bundle.mainreporoot=.../foobar
8 defaults.backout=-d "0 0"
9 defaults.commit=-d "0 0"
10 defaults.tag=-d "0 0"
11 paths.default=.../foo%bar
8 paths.default=.../foo%bar
12 ui.slash=True
9 hg: config error at $HGRCPATH:2: ' x = y'
13 hg: config error at $HGRCPATH:8: ' x = y'
General Comments 0
You need to be logged in to leave comments. Login now