hgbook
view fr/examples/branch-named @ 964:6b680d569bb4
deleting a bunch of files not longer necessary to build the documentation.
Adding missing newly files needed to build the documentation
Adding missing newly files needed to build the documentation
author | Romain PELISSE <belaran@gmail.com> |
---|---|
date | Sun Aug 16 04:58:01 2009 +0200 (2009-08-16) |
parents | 2936cb7eae7a |
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