igor@333: #!/bin/bash igor@333: igor@333: hg init a igor@333: cd a igor@333: echo 'original content' > file igor@333: hg ci -Ama igor@333: igor@333: #$ name: modify igor@333: igor@333: cat file igor@333: echo unwanted change >> file igor@333: hg diff file igor@333: igor@333: #$ name: unmodify igor@333: igor@333: hg status igor@333: hg revert file igor@333: cat file igor@333: igor@333: #$ name: status igor@333: igor@333: hg status igor@333: cat file.orig igor@333: igor@333: #$ name: igor@333: igor@333: rm file.orig igor@333: igor@333: #$ name: add igor@333: igor@333: echo oops > oops igor@333: hg add oops igor@333: hg status oops igor@333: hg revert oops igor@333: hg status igor@333: igor@333: #$ name: igor@333: igor@333: rm oops igor@333: igor@333: #$ name: remove igor@333: igor@333: hg remove file igor@333: hg status igor@333: hg revert file igor@333: hg status igor@333: ls file igor@333: igor@333: #$ name: missing igor@333: igor@333: rm file igor@333: hg status igor@333: hg revert file igor@333: ls file igor@333: igor@333: #$ name: copy igor@333: igor@333: hg copy file new-file igor@333: hg revert new-file igor@333: hg status igor@333: igor@333: #$ name: igor@333: igor@333: rm new-file igor@333: igor@333: #$ name: rename igor@333: igor@333: hg rename file new-file igor@333: hg revert new-file igor@333: hg status igor@333: igor@333: #$ name: rename-orig igor@333: hg revert file igor@333: hg status