sapling/eden/scm/tests/test-xdg.t
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

21 lines
496 B
Perl

#if no-windows no-osx
$ mkdir -p xdgconf/hg
$ echo '[ui]' > xdgconf/hg/hgrc
$ echo 'username = foobar' >> xdgconf/hg/hgrc
$ XDG_CONFIG_HOME="`pwd`/xdgconf" ; export XDG_CONFIG_HOME
$ unset HGRCPATH
$ hg config ui.username 2>/dev/null
foobar
$ mkdir -p home/.config/hg
$ echo '[ui]' > home/.config/hg/hgrc
$ echo 'username = bazbaz' >> home/.config/hg/hgrc
$ HOME="`pwd`/home" ; export HOME
$ unset XDG_CONFIG_HOME
$ hg config ui.username 2>/dev/null
bazbaz
#endif