author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
Thu, 07 Jan 2010 15:12:16 +0100 | |
changeset 10214 | 8111f9988c9d |
parent 10044 | dc5462d94a72 |
child 10296 | cade47dcac2d |
permissions | -rwxr-xr-x |
1473
7d66ce9895fa
make readconfig take a filename instead of a file pointer as argument
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
1 |
#!/bin/sh |
7d66ce9895fa
make readconfig take a filename instead of a file pointer as argument
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
2 |
|
10043 | 3 |
echo "invalid" > $HGRCPATH |
4 |
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |
|
5 |
echo "" > $HGRCPATH |
|
7044
e51c0f41f271
Escape '%' when writing to hgrc (issue1199)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
4659
diff
changeset
|
6 |
|
10043 | 7 |
# issue1199: escaping |
7044
e51c0f41f271
Escape '%' when writing to hgrc (issue1199)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
4659
diff
changeset
|
8 |
hg init "foo%bar" |
e51c0f41f271
Escape '%' when writing to hgrc (issue1199)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
4659
diff
changeset
|
9 |
hg clone "foo%bar" foobar |
e51c0f41f271
Escape '%' when writing to hgrc (issue1199)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
4659
diff
changeset
|
10 |
p=`pwd` |
e51c0f41f271
Escape '%' when writing to hgrc (issue1199)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
4659
diff
changeset
|
11 |
cd foobar |
10043 | 12 |
cat .hg/hgrc | sed -e "s:$p:...:" |
13 |
hg paths | sed -e "s:$p:...:" |
|
14 |
hg showconfig | sed -e "s:$p:...:" |
|
15 |
cd .. |
|
9470
ba75830d17a9
dispatch: catch ConfigError while constructing ui
Martin Geisler <mg@lazybytes.net>
parents:
7044
diff
changeset
|
16 |
|
ba75830d17a9
dispatch: catch ConfigError while constructing ui
Martin Geisler <mg@lazybytes.net>
parents:
7044
diff
changeset
|
17 |
# issue1829: wrong indentation |
10043 | 18 |
echo '[foo]' > $HGRCPATH |
9470
ba75830d17a9
dispatch: catch ConfigError while constructing ui
Martin Geisler <mg@lazybytes.net>
parents:
7044
diff
changeset
|
19 |
echo ' x = y' >> $HGRCPATH |
ba75830d17a9
dispatch: catch ConfigError while constructing ui
Martin Geisler <mg@lazybytes.net>
parents:
7044
diff
changeset
|
20 |
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |
10042
7cdd2a7db2c2
config: raise ConfigError on non-existing include files
Martin Geisler <mg@lazybytes.net>
parents:
9470
diff
changeset
|
21 |
|
7cdd2a7db2c2
config: raise ConfigError on non-existing include files
Martin Geisler <mg@lazybytes.net>
parents:
9470
diff
changeset
|
22 |
echo '%include /no-such-file' > $HGRCPATH |
7cdd2a7db2c2
config: raise ConfigError on non-existing include files
Martin Geisler <mg@lazybytes.net>
parents:
9470
diff
changeset
|
23 |
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|" |