##// END OF EJS Templates
revsetlang: do not pass in non-bytes to parse()...
revsetlang: do not pass in non-bytes to parse() Since parse() isn't a simple function, we shouldn't expect it would raise TypeError or ValueError for invalid inputs. Before, TypeError was raised at 'if pos != len(spec)', which was quite late to report an error. This patch also makes tokenize() detect invalid object before converting it to a py3-safe bytes. Spotted while adding the 'revset(...)' hack to _parsewith().

File last commit:

r32429:7d8da7b5 default
r37793:03d7f885 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