#!/bin/sh cat > $HGRCPATH < main/.hg/hgrc < .hgeol < a.txt hg add a.txt echo "% hg commit (LF a.txt)" hg commit -m 'LF a.txt' echo "% hg push" hg push ../main printf "first\r\nsecond\r\nthird\n" > a.txt echo "% hg commit (CRLF a.txt)" hg commit -m 'CRLF a.txt' echo "% hg push" hg push ../main echo "% hg commit (LF a.txt)" printf "first\nsecond\nthird\n" > a.txt hg commit -m 'LF a.txt (fixed)' echo "% hg push" hg push ../main