Mercurial > hg > mercurial-source
comparison tests/test-hgrc.t @ 44063:d201a637c971
py3: encode underlying error message during parse error of %include
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 17 Oct 2019 12:10:42 +0200 |
parents | 5abc47d4ca6b |
children | 726bd0b612a2 |
comparison
equal
deleted
inserted
replaced
44062:8c0fe77f47c5 | 44063:d201a637c971 |
---|---|
47 $ hg showconfig | 47 $ hg showconfig |
48 bundle.mainreporoot=$TESTTMP/foobar | 48 bundle.mainreporoot=$TESTTMP/foobar |
49 paths.default=$TESTTMP/foo%bar | 49 paths.default=$TESTTMP/foo%bar |
50 $ cd .. | 50 $ cd .. |
51 | 51 |
52 Check %include | |
53 | |
54 $ echo '[section]' > $TESTTMP/included | |
55 $ echo 'option = value' >> $TESTTMP/included | |
56 $ echo '%include $TESTTMP/included' >> $HGRC | |
57 $ hg showconfig section | |
58 section.option=value | |
59 $ chmod u-r $TESTTMP/included | |
60 $ hg showconfig section | |
61 hg: parse error at $TESTTMP/hgrc:2: cannot include $TESTTMP/included (Permission denied) | |
62 [255] | |
63 | |
52 issue1829: wrong indentation | 64 issue1829: wrong indentation |
53 | 65 |
54 $ echo '[foo]' > $HGRC | 66 $ echo '[foo]' > $HGRC |
55 $ echo ' x = y' >> $HGRC | 67 $ echo ' x = y' >> $HGRC |
56 $ hg version | 68 $ hg version |