bos@121: #!/bin/bash bos@121: bos@121: hg init a bos@121: cd a bos@121: echo a > a bos@121: hg ci -A -m 'First commit' bos@121: bos@121: echo a >> a bos@121: bos@121: #$ name: tip bos@121: bos@121: #$ name: commit bos@121: bos@121: hg status bos@121: echo b > b bos@121: hg commit -m 'Add file b' bos@121: bos@121: #$ name: status bos@121: bos@121: hg status bos@121: hg tip bos@121: bos@121: #$ name: rollback bos@121: bos@121: hg rollback bos@121: hg tip bos@121: hg status bos@121: bos@121: #$ name: add bos@121: bos@121: hg add b bos@121: hg commit -m 'Add file b, this time for real' bos@121: bos@121: #$ name: twice bos@121: bos@121: hg rollback bos@121: hg rollback