Mercurial > hg-stable
comparison tests/test-check-code.t @ 43733: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 | 081a77df7bc6 |
children | 5a9e2ae9899b |
comparison
equal
deleted
inserted
replaced
43732:2d8d4e08c493 | 43733:f0b33e5f0cf4 |
---|---|
81 [1] | 81 [1] |
82 | 82 |
83 Keep python3 tests sorted: | 83 Keep python3 tests sorted: |
84 $ sort < contrib/python3-whitelist > $TESTTMP/py3sorted | 84 $ sort < contrib/python3-whitelist > $TESTTMP/py3sorted |
85 $ cmp contrib/python3-whitelist $TESTTMP/py3sorted || echo 'Please sort passing tests!' | 85 $ cmp contrib/python3-whitelist $TESTTMP/py3sorted || echo 'Please sort passing tests!' |
86 | |
87 Keep Windows line endings in check | |
88 | |
89 $ hg files 'set:eol(dos)' | |
90 contrib/win32/hg.bat | |
91 contrib/win32/mercurial.ini |