Mercurial > hg-stable
diff tests/test-hgrc.t @ 43276: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 |
line wrap: on
line diff
--- a/tests/test-hgrc.t Fri Oct 11 18:08:50 2019 +0100 +++ b/tests/test-hgrc.t Thu Oct 17 12:10:42 2019 +0200 @@ -49,6 +49,18 @@ paths.default=$TESTTMP/foo%bar $ cd .. +Check %include + + $ echo '[section]' > $TESTTMP/included + $ echo 'option = value' >> $TESTTMP/included + $ echo '%include $TESTTMP/included' >> $HGRC + $ hg showconfig section + section.option=value + $ chmod u-r $TESTTMP/included + $ hg showconfig section + hg: parse error at $TESTTMP/hgrc:2: cannot include $TESTTMP/included (Permission denied) + [255] + issue1829: wrong indentation $ echo '[foo]' > $HGRC