Mercurial > hg
changeset 43693:f0b33e5f0cf4
tests: check for Windows line endings
We shouldn't generally be using Windows line endings in files
under version control. I've accidentally committed a few files
with Windows line endings recently. So let's add a test for
this.
Differential Revision: https://phab.mercurial-scm.org/D7448
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 16 Nov 2019 12:08:02 -0800 |
parents | 2d8d4e08c493 |
children | 0fd9e7a1cf36 |
files | tests/test-check-code.t |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-code.t Sat Nov 16 11:54:39 2019 -0800 +++ b/tests/test-check-code.t Sat Nov 16 12:08:02 2019 -0800 @@ -83,3 +83,9 @@ Keep python3 tests sorted: $ sort < contrib/python3-whitelist > $TESTTMP/py3sorted $ cmp contrib/python3-whitelist $TESTTMP/py3sorted || echo 'Please sort passing tests!' + +Keep Windows line endings in check + + $ hg files 'set:eol(dos)' + contrib/win32/hg.bat + contrib/win32/mercurial.ini