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