2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2017-02-07 19:33:35 +03:00
|
|
|
#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
|
2017-05-23 01:56:47 +03:00
|
|
|
$ hg config ui.username 2>/dev/null
|
2017-02-07 19:33:35 +03:00
|
|
|
foobar
|
|
|
|
|
2019-03-12 01:24:34 +03:00
|
|
|
$ 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
|
|
|
|
|
|
|
|
|
2017-02-07 19:33:35 +03:00
|
|
|
#endif
|