mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
23 lines
313 B
Perl
23 lines
313 B
Perl
|
#require execbit
|
||
|
|
||
|
$ cat >> $HGRCPATH <<EOF
|
||
|
> [ui]
|
||
|
> foo = bar
|
||
|
> %include $TESTTMP/eperm/rc
|
||
|
> EOF
|
||
|
|
||
|
$ mkdir eperm
|
||
|
$ cat > $TESTTMP/eperm/rc <<EOF
|
||
|
> [ui]
|
||
|
> foo = baz
|
||
|
> EOF
|
||
|
|
||
|
$ hg config ui.foo
|
||
|
baz
|
||
|
|
||
|
An EPERM just causes the include to be ignored:
|
||
|
|
||
|
$ chmod -x eperm
|
||
|
$ hg config ui.foo
|
||
|
bar
|