##// END OF EJS Templates
util: extract all date-related utils in utils/dateutil module...
util: extract all date-related utils in utils/dateutil module With this commit, util.py lose 262 lines Note for extensions author, if this commit breaks your extension, you can pull the step-by-step split here to help you more easily pinpoint the renaming that broke your extension: hg pull https://bitbucket.org/octobus/mercurial-devel/ -r ac1f6453010d Differential Revision: https://phab.mercurial-scm.org/D2282

File last commit:

r33619:5ac845ca stable
r36625:c6061cad default
Show More
test-username-newline.t
27 lines | 525 B | text/troff | Tads3Lexer
/ tests / test-username-newline.t
Adrian Buehlmann
tests: unify test-username-newline
r12301 $ hg init
$ 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
abort: username 'foo\nbar3' contains a newline!
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Adrian Buehlmann
tests: unify test-username-newline
r12301