#!/bin/sh mkdir t cd t hg init mkdir src echo a > src/a.c hg ci -Ama hg mv src source hg ci -Ammove hg co -C 0 echo new > src/a.c echo compiled > src/a.o hg ci -mupdate hg st hg merge hg st