tests/test-xdg.t
author Mads Kiilerich <madski@unity3d.com>
Fri, 16 Jan 2015 04:26:40 +0100
changeset 31314 7c877cbf30d6
parent 30941 354020079723
child 32429 7d8da7b54dc0
permissions -rw-r--r--
util: strip trailing newline from debugstacktrace message This makes the function more convenient to use as drop-in replacement for ui.write & co.

#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