hgbook
view en/examples/branch-named @ 203:d7615e15510f
More about named branches, and early use of them.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri Apr 20 14:35:39 2007 -0700 (2007-04-20) |
parents | 6f167e644762 |
children | 6519f3b983b4 |
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