#!/bin/sh hg init repo cd repo cat > a < a < a hg ci -Ama rm a echo b > a echo a >> a echo c >> a hg diff -U0 -p --nodates exit 0