tests/test-diff-newlines
author Rocco Rutte <pdmef@gmx.net>
Fri, 05 Sep 2008 10:39:57 +0200
changeset 6987 d09e813b21e3
parent 2248 b914f0557832
permissions -rwxr-xr-x
highlight: only pygmentize for HTML mimetypes For non-html mimetypes it doesn't make much sense. This also fixes the issue that highlight unconditionally adds a <link/> tag for its CSS to the template's header (which is pointless in text/plain output).

#!/bin/sh

hg init
python -c 'print "confuse str.splitlines\nembedded\rnewline"' > a
hg ci -Ama -d '1 0'
echo clean diff >> a
hg ci -mb -d '2 0'
hg diff -r0 -r1