##// END OF EJS Templates
tests: use pyflakes as a tool, not a python module...
tests: use pyflakes as a tool, not a python module The usage of pyflakes as a Python module was introduced in e397c6d74652, to work around issue between Python 2 and Python 3. This issues are long behind us now and we can get beck to using pyflakes as a tool, giving us more flexibility about how we install it. The `hghave` requirements is modified to check that we have a tool available, instead of a python module.

File last commit:

r50516:55c6ebd1 stable
r52956:43602c67 default
Show More
test-username-newline.t
28 lines | 540 B | text/troff | Tads3Lexer
/ tests / test-username-newline.t
Arseniy Alekseyev
tests: run many tests in $TESTTMP/repo instead of $TESTTMP...
r50516 $ hg init repo
$ cd repo
Adrian Buehlmann
tests: unify test-username-newline
r12301 $ touch a
$ unset HGUSER
$ echo "[ui]" >> .hg/hgrc
$ echo "username= foo" >> .hg/hgrc
$ echo " bar1" >> .hg/hgrc
$ hg ci -Am m
adding a
abort: username 'foo\nbar1' contains a newline
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Adrian Buehlmann
tests: unify test-username-newline
r12301 $ rm .hg/hgrc
$ HGUSER=`(echo foo; echo bar2)` hg ci -Am m
Martin von Zweigbergk
commit: don't let failed commit with --addremove update dirstate (issue5645)...
r33619 adding a
Adrian Buehlmann
tests: unify test-username-newline
r12301 abort: username 'foo\nbar2' contains a newline
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Adrian Buehlmann
tests: unify test-username-newline
r12301 $ hg ci -Am m -u "`(echo foo; echo bar3)`"
Martin von Zweigbergk
commit: don't let failed commit with --addremove update dirstate (issue5645)...
r33619 adding a
Adrian Buehlmann
tests: unify test-username-newline
r12301 transaction abort!
rollback completed
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 abort: username 'foo\nbar3' contains a newline
Martin von Zweigbergk
errors: use detailed exit code 50 for StorageError...
r46732 [50]
Adrian Buehlmann
tests: unify test-username-newline
r12301