hgbook

view es/examples/branch-named @ 374:c2ff82128ac5

Started translating undo.tex , added mistake and rollback
author Igor TAmara <igor@tamarapatino.org>
date Mon Oct 27 13:32:16 2008 -0500 (2008-10-27)
parents
children
line source
1 #!/bin/bash
3 hg init a
4 cd a
5 echo hello > myfile
6 hg commit -A -m 'Initial commit'
8 #$ name: branches
10 hg tip
11 hg branches
13 #$ name: branch
15 hg branch
17 #$ name: create
19 hg branch foo
20 hg branch
22 #$ name: status
24 hg status
25 hg tip
27 #$ name: commit
29 echo 'hello again' >> myfile
30 hg commit -m 'Second commit'
31 hg tip
33 #$ name: rebranch
35 hg branch
36 hg branch bar
37 echo new file > newfile
38 hg commit -A -m 'Third commit'
39 hg tip
41 #$ name: parents
43 hg parents
44 hg branches
46 #$ name: update-switchy
48 hg update foo
49 hg parents
50 hg update bar
51 hg parents
53 #$ name: update-nothing
55 hg update foo
56 hg update
58 #$ name: foo-commit
60 echo something > somefile
61 hg commit -A -m 'New file'
62 hg heads
64 #$ name: update-bar
66 hg update bar
68 #$ name: merge
70 hg branch
71 hg merge foo
72 hg commit -m 'Merge'
73 hg tip