bos@196: #!/bin/bash bos@196: bos@196: #$ name: init bos@196: bos@196: hg init mytag bos@196: cd mytag bos@196: bos@196: echo hello > myfile bos@196: hg commit -A -m 'Initial commit' bos@196: bos@196: #$ name: tag bos@196: bos@196: hg tag v1.0 bos@196: bos@196: #$ name: tags bos@196: bos@196: hg tags bos@196: bos@196: #$ name: log bos@196: bos@196: hg log bos@196: bos@196: #$ name: log.v1.0 bos@196: bos@196: echo goodbye > myfile2 bos@196: hg commit -A -m 'Second commit' bos@196: hg log -r v1.0 bos@196: bos@196: #$ name: remove bos@196: bos@196: hg tag --remove v1.0 bos@196: hg tags bos@196: bos@196: #$ name: replace bos@196: bos@196: hg tag -r 1 v1.1 bos@196: hg tags bos@196: hg tag -r 2 v1.1 bos@196: hg tag -f -r 2 v1.1 bos@196: hg tags bos@196: bos@196: #$ name: tip bos@196: bos@196: hg tip