##// END OF EJS Templates
subrepo: change default path in hgrc of subrepo after cloning...
subrepo: change default path in hgrc of subrepo after cloning Previous behavior was to put in the cloned subrepos the path found in the original main repo. However it isn't valid for relative path and it seems more logical to reference instead the subrepos working copy path of the original main repo.

File last commit:

r10296:cade47dc merge default
r10378:e1401c74 default
Show More
test-hgrc
27 lines | 639 B | text/plain | TextLexer
Benoit Boissinot
make readconfig take a filename instead of a file pointer as argument...
r1473 #!/bin/sh
Martin Geisler
test-hgrc: cleanup...
r10043 echo "invalid" > $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
echo "" > $HGRCPATH
Benoit Boissinot
Escape '%' when writing to hgrc (issue1199)...
r7044
Martin Geisler
test-hgrc: cleanup...
r10043 # issue1199: escaping
Benoit Boissinot
Escape '%' when writing to hgrc (issue1199)...
r7044 hg init "foo%bar"
hg clone "foo%bar" foobar
p=`pwd`
cd foobar
Martin Geisler
test-hgrc: cleanup...
r10043 cat .hg/hgrc | sed -e "s:$p:...:"
hg paths | sed -e "s:$p:...:"
hg showconfig | sed -e "s:$p:...:"
cd ..
Martin Geisler
dispatch: catch ConfigError while constructing ui
r9470
# issue1829: wrong indentation
Martin Geisler
test-hgrc: cleanup...
r10043 echo '[foo]' > $HGRCPATH
Martin Geisler
dispatch: catch ConfigError while constructing ui
r9470 echo ' x = y' >> $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
Martin Geisler
config: raise ConfigError on non-existing include files...
r10042
Matt Mackall
config: handle short continuations (issue1999)...
r10295 python -c "print '[foo]\nbar = a\n b\n c \n de\n fg \nbaz = bif cb \n'" \
> $HGRCPATH
hg showconfig foo
Martin Geisler
config: raise ConfigError on non-existing include files...
r10042 echo '%include /no-such-file' > $HGRCPATH
hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"