hgbook
diff en/examples/branch-repo @ 198:615f3c6b30e1
Start to describe branch management.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Apr 16 17:21:38 2007 -0700 (2007-04-16) |
parents | |
children | 58e3a6c76725 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/en/examples/branch-repo Mon Apr 16 17:21:38 2007 -0700 1.3 @@ -0,0 +1,35 @@ 1.4 +#!/bin/bash 1.5 + 1.6 +hg init myproject 1.7 +cd myproject 1.8 +echo hello > myfile 1.9 +hg commit -A -m 'Initial commit' 1.10 +cd .. 1.11 + 1.12 +#$ name: tag 1.13 + 1.14 +cd myproject 1.15 +hg tag v1.0 1.16 + 1.17 +#$ name: clone 1.18 + 1.19 +cd .. 1.20 +hg clone myproject myproject-1.0.1 1.21 + 1.22 +#$ name: bugfix 1.23 + 1.24 +hg clone myproject-1.0.1 my-1.0.1-bugfix 1.25 +cd my-1.0.1-bugfix 1.26 +echo 'I fixed a bug using only echo!' >> myfile 1.27 +hg commit -m 'Important fix for 1.0.1' 1.28 +#$ ignore: /tmp/branch-repo.* 1.29 +hg push 1.30 + 1.31 +#$ name: new 1.32 + 1.33 +cd .. 1.34 +hg clone myproject my-feature 1.35 +cd my-feature 1.36 +echo "I'm adding a new feature with my mind!" > mynewfile 1.37 +hg commit -A -m 'New feature' 1.38 +