Mercurial > hg
comparison hgext/hgcia.py @ 9208:12d119ae39bc
hgcia: use reST syntax for literal block
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 23 Jul 2009 00:23:08 +0200 |
parents | 31177742f54a |
children | b2f37dbc5952 |
comparison
equal
deleted
inserted
replaced
9207:38d29d3bf190 | 9208:12d119ae39bc |
---|---|
2 # Published under the GNU GPL | 2 # Published under the GNU GPL |
3 | 3 |
4 """hooks for integrating with the CIA.vc notification service | 4 """hooks for integrating with the CIA.vc notification service |
5 | 5 |
6 This is meant to be run as a changegroup or incoming hook. To configure it, | 6 This is meant to be run as a changegroup or incoming hook. To configure it, |
7 set the following options in your hgrc: | 7 set the following options in your hgrc:: |
8 | 8 |
9 [cia] | 9 [cia] |
10 # your registered CIA user name | 10 # your registered CIA user name |
11 user = foo | 11 user = foo |
12 # the name of the project in CIA | 12 # the name of the project in CIA |
13 project = foo | 13 project = foo |
14 # the module (subproject) (optional) | 14 # the module (subproject) (optional) |
15 #module = foo | 15 #module = foo |
16 # Append a diffstat to the log message (optional) | 16 # Append a diffstat to the log message (optional) |
17 #diffstat = False | 17 #diffstat = False |
18 # Template to use for log messages (optional) | 18 # Template to use for log messages (optional) |
19 #template = {desc}\\n{baseurl}/rev/{node}-- {diffstat} | 19 #template = {desc}\\n{baseurl}/rev/{node}-- {diffstat} |
20 # Style to use (optional) | 20 # Style to use (optional) |
21 #style = foo | 21 #style = foo |
22 # The URL of the CIA notification service (optional) | 22 # The URL of the CIA notification service (optional) |
23 # You can use mailto: URLs to send by email, eg | 23 # You can use mailto: URLs to send by email, eg |
24 # mailto:cia@cia.vc | 24 # mailto:cia@cia.vc |
25 # Make sure to set email.from if you do this. | 25 # Make sure to set email.from if you do this. |
26 #url = http://cia.vc/ | 26 #url = http://cia.vc/ |
27 # print message instead of sending it (optional) | 27 # print message instead of sending it (optional) |
28 #test = False | 28 #test = False |
29 | 29 |
30 [hooks] | 30 [hooks] |
31 # one of these: | 31 # one of these: |
32 changegroup.cia = python:hgcia.hook | 32 changegroup.cia = python:hgcia.hook |
33 #incoming.cia = python:hgcia.hook | 33 #incoming.cia = python:hgcia.hook |
34 | 34 |
35 [web] | 35 [web] |
36 # If you want hyperlinks (optional) | 36 # If you want hyperlinks (optional) |
37 baseurl = http://server/path/to/repo | 37 baseurl = http://server/path/to/repo |
38 """ | 38 """ |
39 | 39 |
40 from mercurial.i18n import _ | 40 from mercurial.i18n import _ |
41 from mercurial.node import * | 41 from mercurial.node import * |
42 from mercurial import cmdutil, patch, templater, util, mail | 42 from mercurial import cmdutil, patch, templater, util, mail |