mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
ab3a7cb21f
Summary: In preparation for merging fb-mercurial sources to the Eden repository, move everything from the top-level directory into an `eden/scm` subdirectory.
21 lines
496 B
Perl
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
|