Mercurial > hgbook
comparison es/examples/branch-named @ 432:04c08ad7e92e
Translated svgs dummy .tex towards building
author | Igor TAmara <igor@tamarapatino.org> |
---|---|
date | Sat, 18 Oct 2008 07:48:21 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
431:d13a05515acf | 432:04c08ad7e92e |
---|---|
1 #!/bin/bash | |
2 | |
3 hg init a | |
4 cd a | |
5 echo hello > myfile | |
6 hg commit -A -m 'Initial commit' | |
7 | |
8 #$ name: branches | |
9 | |
10 hg tip | |
11 hg branches | |
12 | |
13 #$ name: branch | |
14 | |
15 hg branch | |
16 | |
17 #$ name: create | |
18 | |
19 hg branch foo | |
20 hg branch | |
21 | |
22 #$ name: status | |
23 | |
24 hg status | |
25 hg tip | |
26 | |
27 #$ name: commit | |
28 | |
29 echo 'hello again' >> myfile | |
30 hg commit -m 'Second commit' | |
31 hg tip | |
32 | |
33 #$ name: rebranch | |
34 | |
35 hg branch | |
36 hg branch bar | |
37 echo new file > newfile | |
38 hg commit -A -m 'Third commit' | |
39 hg tip | |
40 | |
41 #$ name: parents | |
42 | |
43 hg parents | |
44 hg branches | |
45 | |
46 #$ name: update-switchy | |
47 | |
48 hg update foo | |
49 hg parents | |
50 hg update bar | |
51 hg parents | |
52 | |
53 #$ name: update-nothing | |
54 | |
55 hg update foo | |
56 hg update | |
57 | |
58 #$ name: foo-commit | |
59 | |
60 echo something > somefile | |
61 hg commit -A -m 'New file' | |
62 hg heads | |
63 | |
64 #$ name: update-bar | |
65 | |
66 hg update bar | |
67 | |
68 #$ name: merge | |
69 | |
70 hg branch | |
71 hg merge foo | |
72 hg commit -m 'Merge' | |
73 hg tip |