Mercurial > hgbook
comparison en/examples/branch-repo @ 198:615f3c6b30e1
Start to describe branch management.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 16 Apr 2007 17:21:38 -0700 |
parents | |
children | 58e3a6c76725 |
comparison
equal
deleted
inserted
replaced
197:76697ae503db | 198:615f3c6b30e1 |
---|---|
1 #!/bin/bash | |
2 | |
3 hg init myproject | |
4 cd myproject | |
5 echo hello > myfile | |
6 hg commit -A -m 'Initial commit' | |
7 cd .. | |
8 | |
9 #$ name: tag | |
10 | |
11 cd myproject | |
12 hg tag v1.0 | |
13 | |
14 #$ name: clone | |
15 | |
16 cd .. | |
17 hg clone myproject myproject-1.0.1 | |
18 | |
19 #$ name: bugfix | |
20 | |
21 hg clone myproject-1.0.1 my-1.0.1-bugfix | |
22 cd my-1.0.1-bugfix | |
23 echo 'I fixed a bug using only echo!' >> myfile | |
24 hg commit -m 'Important fix for 1.0.1' | |
25 #$ ignore: /tmp/branch-repo.* | |
26 hg push | |
27 | |
28 #$ name: new | |
29 | |
30 cd .. | |
31 hg clone myproject my-feature | |
32 cd my-feature | |
33 echo "I'm adding a new feature with my mind!" > mynewfile | |
34 hg commit -A -m 'New feature' | |
35 |