Created
May 17, 2012 00:59
Revisions
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ #!/bin/bash THIS_FOLDER=`dirname $0` node=$1 # What files have changed files=`hg log --template="{files}" -r $node` # Check each for file in $files; do type=`hg cat -r tip $file | file -b -` if [[ "$type" =~ "text, with CRLF line terminators" ]]; then echo "INFO: $file is $type" echo "ERROR: $file is not ascii text with unix line ends" exit 1; fi done