hgbook
diff it/examples/template.simple.keywords.it @ 803:241859e47472
Minor changes and translation of code snippets for Ch.11.
author | Giulio@puck |
---|---|
date | Fri Aug 14 18:01:22 2009 +0200 (2009-08-14) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/it/examples/template.simple.keywords.it Fri Aug 14 18:01:22 2009 +0200 1.3 @@ -0,0 +1,24 @@ 1.4 +<!-- BEGIN template.simple.keywords --> 1.5 +<screen><prompt>$</prompt> <userinput>hg log -r1 --template 'autore: {author}\n'</userinput> 1.6 +autore: Bryan O'Sullivan <bos@serpentine.com> 1.7 +<prompt>$</prompt> <userinput>hg log -r1 --template 'desc:\n{desc}\n'</userinput> 1.8 +desc: 1.9 +Aggiunta una riga alla fine del file <<hello>>. 1.10 + 1.11 +In più, aggiunto un file con il nome indicativo (almeno spero che qualcuno possa considerarlo tale) di goodbye. 1.12 +<prompt>$</prompt> <userinput>hg log -r1 --template 'file: {files}\n'</userinput> 1.13 +file: goodbye hello 1.14 +<prompt>$</prompt> <userinput>hg log -r1 --template 'file aggiunti: {file_adds}\n'</userinput> 1.15 +file aggiunti: goodbye 1.16 +<prompt>$</prompt> <userinput>hg log -r1 --template 'file rimossi: {file_dels}\n'</userinput> 1.17 +file rimossi: 1.18 +<prompt>$</prompt> <userinput>hg log -r1 --template 'nodo: {node}\n'</userinput> 1.19 +nodo: fb5e3583537ab9d278f45d18bcb07262af1e7226 1.20 +<prompt>$</prompt> <userinput>hg log -r1 --template 'genitori: {parents}\n'</userinput> 1.21 +genitori: 1.22 +<prompt>$</prompt> <userinput>hg log -r1 --template 'revisione: {rev}\n'</userinput> 1.23 +revisione: 1 1.24 +<prompt>$</prompt> <userinput>hg log -r1 --template 'etichette: {tags}\n'</userinput> 1.25 +etichette: miaetichetta 1.26 +</screen> 1.27 +<!-- END template.simple.keywords -->