hgbook
annotate en/examples/tag @ 799:51f5fd4969eb
Lowering SSH, as in the original text.
author | Giulio@puck |
---|---|
date | Thu Aug 13 23:51:17 2009 +0200 (2009-08-13) |
parents | |
children |
rev | line source |
---|---|
bos@196 | 1 #!/bin/bash |
bos@196 | 2 |
bos@196 | 3 #$ name: init |
bos@196 | 4 |
bos@196 | 5 hg init mytag |
bos@196 | 6 cd mytag |
bos@196 | 7 |
bos@196 | 8 echo hello > myfile |
bos@196 | 9 hg commit -A -m 'Initial commit' |
bos@196 | 10 |
bos@196 | 11 #$ name: tag |
bos@196 | 12 |
bos@196 | 13 hg tag v1.0 |
bos@196 | 14 |
bos@196 | 15 #$ name: tags |
bos@196 | 16 |
bos@196 | 17 hg tags |
bos@196 | 18 |
bos@196 | 19 #$ name: log |
bos@196 | 20 |
bos@196 | 21 hg log |
bos@196 | 22 |
bos@196 | 23 #$ name: log.v1.0 |
bos@196 | 24 |
bos@196 | 25 echo goodbye > myfile2 |
bos@196 | 26 hg commit -A -m 'Second commit' |
bos@196 | 27 hg log -r v1.0 |
bos@196 | 28 |
bos@196 | 29 #$ name: remove |
bos@196 | 30 |
bos@196 | 31 hg tag --remove v1.0 |
bos@196 | 32 hg tags |
bos@196 | 33 |
bos@196 | 34 #$ name: replace |
bos@196 | 35 |
bos@196 | 36 hg tag -r 1 v1.1 |
bos@196 | 37 hg tags |
bos@196 | 38 hg tag -r 2 v1.1 |
bos@196 | 39 hg tag -f -r 2 v1.1 |
bos@196 | 40 hg tags |
bos@196 | 41 |
bos@196 | 42 #$ name: tip |
bos@196 | 43 |
bos@196 | 44 hg tip |