hgbook
annotate es/examples/tag @ 812:42e2c9d47ef4
Minor changes and translation of code snippets for Ch.12.
author | Giulio@puck |
---|---|
date | Sat Aug 15 15:15:39 2009 +0200 (2009-08-15) |
parents | |
children |
rev | line source |
---|---|
igor@333 | 1 #!/bin/bash |
igor@333 | 2 |
igor@333 | 3 #$ name: init |
igor@333 | 4 |
igor@333 | 5 hg init mytag |
igor@333 | 6 cd mytag |
igor@333 | 7 |
igor@333 | 8 echo hello > myfile |
igor@333 | 9 hg commit -A -m 'Initial commit' |
igor@333 | 10 |
igor@333 | 11 #$ name: tag |
igor@333 | 12 |
igor@333 | 13 hg tag v1.0 |
igor@333 | 14 |
igor@333 | 15 #$ name: tags |
igor@333 | 16 |
igor@333 | 17 hg tags |
igor@333 | 18 |
igor@333 | 19 #$ name: log |
igor@333 | 20 |
igor@333 | 21 hg log |
igor@333 | 22 |
igor@333 | 23 #$ name: log.v1.0 |
igor@333 | 24 |
igor@333 | 25 echo goodbye > myfile2 |
igor@333 | 26 hg commit -A -m 'Second commit' |
igor@333 | 27 hg log -r v1.0 |
igor@333 | 28 |
igor@333 | 29 #$ name: remove |
igor@333 | 30 |
igor@333 | 31 hg tag --remove v1.0 |
igor@333 | 32 hg tags |
igor@333 | 33 |
igor@333 | 34 #$ name: replace |
igor@333 | 35 |
igor@333 | 36 hg tag -r 1 v1.1 |
igor@333 | 37 hg tags |
igor@333 | 38 hg tag -r 2 v1.1 |
igor@333 | 39 hg tag -f -r 2 v1.1 |
igor@333 | 40 hg tags |
igor@333 | 41 |
igor@333 | 42 #$ name: tip |
igor@333 | 43 |
igor@333 | 44 hg tip |