#!/bin/sh echo "[ui]" >> $HGRCPATH echo "interactive=true" >> $HGRCPATH echo "[extensions]" >> $HGRCPATH echo "record=" >> $HGRCPATH echo "% help (no mq, so no qrecord)" hg help qrecord echo "mq=" >> $HGRCPATH echo "% help (mq present)" hg help qrecord hg init a cd a echo % base commit cat > 1.txt < 2.txt < dir/a.txt < 1.txt.new sed -e 's/b/b b/' 2.txt > 2.txt.new sed -e 's/hello world/hello world!/' dir/a.txt > dir/a.txt.new mv -f 1.txt.new 1.txt mv -f 2.txt.new 2.txt mv -f dir/a.txt.new dir/a.txt echo % whole diff hg diff --nodates echo % qrecord a.patch hg qrecord -d '0 0' -m aaa a.patch <