hgbook

diff it/examples/ch10-notify-config.lst.it @ 797:26b05b7dd445

Minor changes and translation of code snippets for Ch.10.
author Giulio@puck
date Thu Aug 13 18:57:50 2009 +0200 (2009-08-13)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/it/examples/ch10-notify-config.lst.it	Thu Aug 13 18:57:50 2009 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +<!-- BEGIN ch10/notify-config.lst -->
     1.5 +<programlisting>[notify]
     1.6 +# spedisci davvero le email
     1.7 +test = false
     1.8 +# i dati delle sottoscrizioni si trovano nel repository notify
     1.9 +config = /home/hg/repos/notify/notify.conf
    1.10 +# i repository si trovano in /home/hg/repos sul server, quindi
    1.11 +# eliminiamo 4 caratteri "/"
    1.12 +strip = 4
    1.13 +template = X-Hg-Repo: {webroot}\n
    1.14 +  Subject: {webroot}: {desc|firstline|strip}\n
    1.15 +  From: {author}
    1.16 +  \n\n
    1.17 +  changeset {node|short} nel repository {root}
    1.18 +  \n\ndettagli:
    1.19 +  {baseurl}{webroot}?cmd=changeset;node={node|short}
    1.20 +  descrizione: {desc|tabindent|strip}
    1.21 +
    1.22 +[web]
    1.23 +baseurl = http://hg.example.com/</programlisting>
    1.24 +<!-- END ch10/notify-config.lst -->