tests/test-eol-hook
branchstable
changeset 12795 3cb0559e44d0
parent 12793 469850088fc1
parent 12794 6bf8d48bec8e
child 12796 bc69ba99e34b
--- a/tests/test-eol-hook	Wed Oct 20 23:39:48 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-cat > $HGRCPATH <<EOF
-[diff]
-git = True
-EOF
-
-hg init main
-cat > main/.hg/hgrc <<EOF
-[extensions]
-eol =
-
-[hooks]
-pretxnchangegroup = python:hgext.eol.hook
-EOF
-
-hg clone main fork
-
-cd fork
-cat > .hgeol <<EOF
-[patterns]
-mixed.txt = BIN
-**.txt = native
-EOF
-
-hg add .hgeol
-hg commit -m 'Commit .hgeol'
-
-printf "first\nsecond\nthird\n" > 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