hgbook

annotate en/examples/rollback @ 275:96ea24a916f9

Merge with myself.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Nov 26 20:42:36 2007 -0800 (2007-11-26)
parents
children
rev   line source
bos@121 1 #!/bin/bash
bos@121 2
bos@121 3 hg init a
bos@121 4 cd a
bos@121 5 echo a > a
bos@121 6 hg ci -A -m 'First commit'
bos@121 7
bos@121 8 echo a >> a
bos@121 9
bos@121 10 #$ name: tip
bos@121 11
bos@121 12 #$ name: commit
bos@121 13
bos@121 14 hg status
bos@121 15 echo b > b
bos@121 16 hg commit -m 'Add file b'
bos@121 17
bos@121 18 #$ name: status
bos@121 19
bos@121 20 hg status
bos@121 21 hg tip
bos@121 22
bos@121 23 #$ name: rollback
bos@121 24
bos@121 25 hg rollback
bos@121 26 hg tip
bos@121 27 hg status
bos@121 28
bos@121 29 #$ name: add
bos@121 30
bos@121 31 hg add b
bos@121 32 hg commit -m 'Add file b, this time for real'
bos@121 33
bos@121 34 #$ name: twice
bos@121 35
bos@121 36 hg rollback
bos@121 37 hg rollback