#!/bin/sh echo "[ui]" >> $HGRCPATH echo "interactive=true" >> $HGRCPATH echo "[extensions]" >> $HGRCPATH echo "record=" >> $HGRCPATH echo % help hg help record hg init a cd a echo % select no files touch empty-rw hg add empty-rw hg record empty-rw<> plain done hg add plain hg record -d '7 0' -m plain plain<> plain hg record -d '8 0' -m end plain <> plain hg record -d '9 0' -m noeol plain <> plain hg record -d '10 0' -m eol plain <> plain done hg record -d '10 0' -m begin-and-end plain <> plain done echo % record end hg record -d '11 0' -m end-only plain <> plain done echo % record end hg record --traceback -d '13 0' -m end-again plain<> plain done echo % record beginning, middle hg record -d '14 0' -m middle-only plain < a hg ci -d '16 0' -Amsubdir echo a >> a hg record -d '16 0' -m subdir-change a <