Debian Codegraph @

tests/test-xdg.t

raw
1 #if no-windows
2
3 $ mkdir -p xdgconf/hg
4 $ echo '[ui]' > xdgconf/hg/hgrc
5 $ echo 'username = foobar' >> xdgconf/hg/hgrc
6 $ XDG_CONFIG_HOME="`pwd`/xdgconf" ; export XDG_CONFIG_HOME
7 $ unset HGRCPATH
8 $ hg config ui.username 2>/dev/null
9 foobar
10
11 #endif