tests/test-xdg.t
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 16 Mar 2017 06:32:33 +0530
changeset 31428 1fc3d1f02865
parent 30961 354020079723
child 32467 7d8da7b54dc0
permissions -rw-r--r--
scmutil: make function name bytes in class filecache func.__name__ returns unicodes and this leads to keyerror when we try to do filecache[''] by passing bytes.

#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