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