comparison en/examples/rollback @ 121:9094c9fda8ec

Start chapter on error recovery.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 15 Nov 2006 15:59:41 -0800
parents
children
comparison
equal deleted inserted replaced
120:51c9168ab5f8 121:9094c9fda8ec
1 #!/bin/bash
2
3 hg init a
4 cd a
5 echo a > a
6 hg ci -A -m 'First commit'
7
8 echo a >> a
9
10 #$ name: tip
11
12 #$ name: commit
13
14 hg status
15 echo b > b
16 hg commit -m 'Add file b'
17
18 #$ name: status
19
20 hg status
21 hg tip
22
23 #$ name: rollback
24
25 hg rollback
26 hg tip
27 hg status
28
29 #$ name: add
30
31 hg add b
32 hg commit -m 'Add file b, this time for real'
33
34 #$ name: twice
35
36 hg rollback
37 hg rollback