tests/test-xdg.t
author Jun Wu <quark@fb.com>
Sat, 18 Feb 2017 16:30:07 -0800
changeset 31019 74f77f1c2215
parent 30941 354020079723
child 32429 7d8da7b54dc0
permissions -rw-r--r--
smartset: add some doctests Add doctests explaining the set / list behavior. This will make the following changes more confident.

#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