view es/examples/tag @ 449:74224b4f6928

this file was a symlink; this was intended to keep track of the file on any change that might appear on the original version of the book. I removed it and instead created a copy, because some of the modifications needed for the translation (the traduction of a couple of commands defined there) would have affected the english version. And we don't want that ;)
author jerojasro@localhost
date Sun, 19 Oct 2008 23:53:39 -0500
parents 04c08ad7e92e
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