hgbook

view fr/examples/tag @ 992:8b0f1e2984d0

French translation : sync with original ch04-concepts
author Frédéric Bouquet <youshe.jaalon@gmail.com>
date Fri Sep 11 14:30:20 2009 +0200 (2009-09-11)
parents 4237e45506ee
children
line source
1 #!/bin/bash
3 #$ name: init
5 hg init mytag
6 cd mytag
8 echo hello > myfile
9 hg commit -A -m 'Initial commit'
11 #$ name: tag
13 hg tag v1.0
15 #$ name: tags
17 hg tags
19 #$ name: log
21 hg log
23 #$ name: log.v1.0
25 echo goodbye > myfile2
26 hg commit -A -m 'Second commit'
27 hg log -r v1.0
29 #$ name: remove
31 hg tag --remove v1.0
32 hg tags
34 #$ name: replace
36 hg tag -r 1 v1.1
37 hg tags
38 hg tag -r 2 v1.1
39 hg tag -f -r 2 v1.1
40 hg tags
42 #$ name: tip
44 hg tip