Mercurial > hgbook
comparison ja/examples/branch-repo @ 290:b0db5adf11c1 ja_root
fork Japanese translation.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Wed, 06 Feb 2008 17:43:11 +0900 |
parents | en/examples/branch-repo@58e3a6c76725 |
children |
comparison
equal
deleted
inserted
replaced
289:7be02466421b | 290:b0db5adf11c1 |
---|---|
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 'This sure is an exciting new feature!' > mynewfile | |
34 hg commit -A -m 'New feature' | |
35 hg push | |
36 | |
37 #$ name: pull | |
38 | |
39 cd .. | |
40 hg clone myproject myproject-merge | |
41 cd myproject-merge | |
42 hg pull ../myproject-1.0.1 | |
43 | |
44 #$ name: merge | |
45 | |
46 hg merge | |
47 hg commit -m 'Merge bugfix from 1.0.1 branch' | |
48 hg push |