tests/test-xdg.t
author Raphaël Gomès <rgomes@octobus.net>
Thu, 18 Jul 2024 12:03:29 +0200
changeset 51702 b0a4de6c14f8
parent 51607 a4b3b8dee0a8
permissions -rw-r--r--
pytype: work around wrong ImportError flagging As documented in https://github.com/google/pytype/issues/163, newer versions of Pytype do not understand caught `ImportError`, so we temporarily ignore them where applicable.

#if no-windows

  $ 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 2>/dev/null
  foobar

#endif