view en/examples/tag @ 838:d1f676a6a4b3 default tip

update mq chapter. propagate ef53d025f410.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 03 Dec 2009 01:26:08 +0900
parents 4237e45506ee
children
line wrap: on
line source

#!/bin/bash

#$ name: init

hg init mytag
cd mytag

echo hello > myfile
hg commit -A -m 'Initial commit'

#$ name: tag

hg tag v1.0

#$ name: tags

hg tags

#$ name: log

hg log

#$ name: log.v1.0

echo goodbye > myfile2
hg commit -A -m 'Second commit'
hg log -r v1.0

#$ name: remove

hg tag --remove v1.0
hg tags

#$ name: replace

hg tag -r 1 v1.1
hg tags
hg tag -r 2 v1.1
hg tag -f -r 2 v1.1
hg tags

#$ name: tip

hg tip