bos@198: #!/bin/bash bos@198: bos@198: hg init myproject bos@198: cd myproject bos@198: echo hello > myfile bos@198: hg commit -A -m 'Initial commit' bos@198: cd .. bos@198: bos@198: #$ name: tag bos@198: bos@198: cd myproject bos@198: hg tag v1.0 bos@198: bos@198: #$ name: clone bos@198: bos@198: cd .. bos@198: hg clone myproject myproject-1.0.1 bos@198: bos@198: #$ name: bugfix bos@198: bos@198: hg clone myproject-1.0.1 my-1.0.1-bugfix bos@198: cd my-1.0.1-bugfix bos@198: echo 'I fixed a bug using only echo!' >> myfile bos@198: hg commit -m 'Important fix for 1.0.1' bos@198: #$ ignore: /tmp/branch-repo.* bos@198: hg push bos@198: bos@198: #$ name: new bos@198: bos@198: cd .. bos@198: hg clone myproject my-feature bos@198: cd my-feature bos@199: echo 'This sure is an exciting new feature!' > mynewfile bos@198: hg commit -A -m 'New feature' bos@199: hg push bos@198: bos@199: #$ name: pull bos@199: bos@199: cd .. bos@199: hg clone myproject myproject-merge bos@199: cd myproject-merge bos@199: hg pull ../myproject-1.0.1 bos@199: bos@199: #$ name: merge bos@199: bos@199: hg merge bos@199: hg commit -m 'Merge bugfix from 1.0.1 branch' bos@199: hg push