hgbook
annotate en/examples/rollback @ 1066:cd081566e692
1.8 refined
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Wed Nov 11 17:51:44 2009 -0500 (2009-11-11) |
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 |