##// END OF EJS Templates
fix: use templater to substitute values in command string...
fix: use templater to substitute values in command string bytes.format() isn't supported on Python 3. Luckily, our template syntax is similar so we can reuse it. We need a hack to disable \-escapes as '\' is a directory separator on Windows.

File last commit:

r32429:7d8da7b5 default
r37792:d6970628 default
Show More
test-xdg.t
11 lines | 264 B | text/troff | Tads3Lexer
David Demelier
hg: allow usage of XDG_CONFIG_HOME/hg/hgrc...
r30941 #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
Durham Goode
tests: hide warning from test-xdg.t...
r32429 $ hg config ui.username 2>/dev/null
David Demelier
hg: allow usage of XDG_CONFIG_HOME/hg/hgrc...
r30941 foobar
#endif