hgbook
annotate 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 |
rev | line source |
---|---|
bos@202 | 1 #!/bin/bash |
bos@202 | 2 |
bos@202 | 3 hg init a |
bos@202 | 4 cd a |
bos@202 | 5 echo hello > myfile |
bos@202 | 6 hg commit -A -m 'Initial commit' |
bos@202 | 7 |
bos@202 | 8 #$ name: branches |
bos@202 | 9 |
bos@203 | 10 hg tip |
bos@202 | 11 hg branches |
bos@203 | 12 |
bos@203 | 13 #$ name: branch |
bos@203 | 14 |
bos@203 | 15 hg branch |
bos@203 | 16 |
bos@203 | 17 #$ name: create |
bos@203 | 18 |
bos@203 | 19 hg branch foo |
bos@203 | 20 hg branch |
bos@203 | 21 |
bos@203 | 22 #$ name: status |
bos@203 | 23 |
bos@203 | 24 hg status |
bos@203 | 25 hg tip |
bos@203 | 26 |
bos@203 | 27 #$ name: commit |
bos@203 | 28 |
bos@203 | 29 echo 'hello again' >> myfile |
bos@203 | 30 hg commit -m 'Second commit' |
bos@203 | 31 hg tip |