tests/test-xdg.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 31 Mar 2017 11:06:42 +0200
changeset 31745 33504b54863e
parent 30941 354020079723
child 32429 7d8da7b54dc0
permissions -rw-r--r--
hook: use 'htype' in 'hook' Same rational as for 'runhooks', we fix the naming in another function.

#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
  foobar

#endif