$ hg status M file $ hg revert file $ cat file original content