comparison hgext/bugzilla.py @ 13841:367805c848e5

bugzilla: markup literal text as such
author Martin Geisler <mg@aragost.com>
date Fri, 01 Apr 2011 12:27:12 +0200
parents 22f20d0fe2d3
children 4cffce61bd92
comparison
equal deleted inserted replaced
13840:80664e245f84 13841:367805c848e5
58 2.18 MySQL access, Bugzilla 2.18 and up to but not including 3.0. 58 2.18 MySQL access, Bugzilla 2.18 and up to but not including 3.0.
59 2.16 MySQL access, Bugzilla 2.16 and up to but not including 2.18. 59 2.16 MySQL access, Bugzilla 2.16 and up to but not including 2.18.
60 60
61 bugzilla.regexp 61 bugzilla.regexp
62 Regular expression to match bug IDs in changeset commit message. 62 Regular expression to match bug IDs in changeset commit message.
63 Must contain one "()" group. The default expression matches 'Bug 63 Must contain one "()" group. The default expression matches ``Bug
64 1234', 'Bug no. 1234', 'Bug number 1234', 'Bugs 1234,5678', 'Bug 64 1234``, ``Bug no. 1234``, ``Bug number 1234``, ``Bugs 1234,5678``,
65 1234 and 5678' and variations thereof. Matching is case insensitive. 65 ``Bug 1234 and 5678`` and variations thereof. Matching is case
66 insensitive.
66 67
67 bugzilla.style 68 bugzilla.style
68 The style file to use when formatting comments. 69 The style file to use when formatting comments.
69 70
70 bugzilla.template 71 bugzilla.template
79 80
80 Default 'changeset {node|short} in repo {root} refers ' 81 Default 'changeset {node|short} in repo {root} refers '
81 'to bug {bug}.\\ndetails:\\n\\t{desc|tabindent}' 82 'to bug {bug}.\\ndetails:\\n\\t{desc|tabindent}'
82 83
83 bugzilla.strip 84 bugzilla.strip
84 The number of path separator characters to strip from the front of the 85 The number of path separator characters to strip from the front of
85 Mercurial repository path ('{root}' in templates) to produce '{webroot}'. 86 the Mercurial repository path (``{root}`` in templates) to produce
86 For example, a repository with '{root}' '/var/local/my-project' with a 87 ``{webroot}``. For example, a repository with ``{root}``
87 strip of 2 gives a value for '{webroot}' of 'my-project'. Default 0. 88 ``/var/local/my-project`` with a strip of 2 gives a value for
89 ``{webroot}`` of ``my-project``. Default 0.
88 90
89 web.baseurl 91 web.baseurl
90 Base URL for browsing Mercurial repositories. Referenced from 92 Base URL for browsing Mercurial repositories. Referenced from
91 templates as {hgweb}. 93 templates as {hgweb}.
92 94
107 109
108 XMLRPC access mode configuration: 110 XMLRPC access mode configuration:
109 111
110 bugzilla.bzurl 112 bugzilla.bzurl
111 The base URL for the Bugzilla installation. 113 The base URL for the Bugzilla installation.
112 Default 'http://localhost/bugzilla'. 114 Default ``http://localhost/bugzilla``.
113 115
114 bugzilla.user 116 bugzilla.user
115 The username to use to log into Bugzilla via XMLRPC. Default 'bugs'. 117 The username to use to log into Bugzilla via XMLRPC. Default
118 ``bugs``.
116 119
117 bugzilla.password 120 bugzilla.password
118 The password for Bugzilla login. 121 The password for Bugzilla login.
119 122
120 XMLRPC+email access mode uses the XMLRPC access mode configuration items, 123 XMLRPC+email access mode uses the XMLRPC access mode configuration items,
128 131
129 MySQL access mode configuration: 132 MySQL access mode configuration:
130 133
131 bugzilla.host 134 bugzilla.host
132 Hostname of the MySQL server holding the Bugzilla database. 135 Hostname of the MySQL server holding the Bugzilla database.
133 Default 'localhost'. 136 Default ``localhost``.
134 137
135 bugzilla.db 138 bugzilla.db
136 Name of the Bugzilla database in MySQL. Default 'bugs'. 139 Name of the Bugzilla database in MySQL. Default ``bugs``.
137 140
138 bugzilla.user 141 bugzilla.user
139 Username to use to access MySQL server. Default 'bugs'. 142 Username to use to access MySQL server. Default ``bugs``.
140 143
141 bugzilla.password 144 bugzilla.password
142 Password to use to access MySQL server. 145 Password to use to access MySQL server.
143 146
144 bugzilla.timeout 147 bugzilla.timeout
148 Fallback Bugzilla user name to record comments with, if changeset 151 Fallback Bugzilla user name to record comments with, if changeset
149 committer cannot be found as a Bugzilla user. 152 committer cannot be found as a Bugzilla user.
150 153
151 bugzilla.bzdir 154 bugzilla.bzdir
152 Bugzilla install directory. Used by default notify. Default 155 Bugzilla install directory. Used by default notify. Default
153 '/var/www/html/bugzilla'. 156 ``/var/www/html/bugzilla``.
154 157
155 bugzilla.notify 158 bugzilla.notify
156 The command to run to get Bugzilla to send bug change notification 159 The command to run to get Bugzilla to send bug change notification
157 emails. Substitutes from a map with 3 keys, 'bzdir', 'id' (bug id) 160 emails. Substitutes from a map with 3 keys, ``bzdir``, ``id`` (bug
158 and 'user' (committer bugzilla email). Default depends on version; 161 id) and ``user`` (committer bugzilla email). Default depends on
159 from 2.18 it is "cd %(bzdir)s && perl -T contrib/sendbugmail.pl 162 version; from 2.18 it is "cd %(bzdir)s && perl -T
160 %(id)s %(user)s". 163 contrib/sendbugmail.pl %(id)s %(user)s".
161 164
162 Activating the extension:: 165 Activating the extension::
163 166
164 [extensions] 167 [extensions]
165 bugzilla = 168 bugzilla =
169 incoming.bugzilla = python:hgext.bugzilla.hook 172 incoming.bugzilla = python:hgext.bugzilla.hook
170 173
171 Example configurations: 174 Example configurations:
172 175
173 XMLRPC example configuration. This uses the Bugzilla at 176 XMLRPC example configuration. This uses the Bugzilla at
174 'http://my-project.org/bugzilla', logging in as user 'bugmail@my-project.org' 177 ``http://my-project.org/bugzilla``, logging in as user
175 wityh password 'plugh'. It is used with a collection of Mercurial 178 ``bugmail@my-project.org`` with password ``plugh``. It is used with a
176 repositories in '/var/local/hg/repos/'. :: 179 collection of Mercurial repositories in ``/var/local/hg/repos/``. ::
177 180
178 [bugzilla] 181 [bugzilla]
179 bzurl=http://my-project.org/bugzilla 182 bzurl=http://my-project.org/bugzilla
180 user=bugmail@my-project.org 183 user=bugmail@my-project.org
181 password=plugh 184 password=plugh
183 186
184 [web] 187 [web]
185 baseurl=http://my-project.org/hg 188 baseurl=http://my-project.org/hg
186 189
187 XMLRPC+email example configuration. This uses the Bugzilla at 190 XMLRPC+email example configuration. This uses the Bugzilla at
188 'http://my-project.org/bugzilla', logging in as user 'bugmail@my-project.org' 191 ``http://my-project.org/bugzilla``, logging in as user
189 wityh password 'plugh'. It is used with a collection of Mercurial 192 ``bugmail@my-project.org`` wityh password ``plugh``. It is used with a
190 repositories in '/var/local/hg/repos/'. Bug comments are sent to the 193 collection of Mercurial repositories in ``/var/local/hg/repos/``. Bug
191 Bugzilla email address 'buzilla@my-project.org'. :: 194 comments are sent to the Bugzilla email address
195 ``buzilla@my-project.org``. ::
192 196
193 [bugzilla] 197 [bugzilla]
194 user=bugmail@my-project.org 198 user=bugmail@my-project.org
195 password=plugh 199 password=plugh
196 version=xmlrpc 200 version=xmlrpc
199 [web] 203 [web]
200 baseurl=https://dev.laicatc.com/hg 204 baseurl=https://dev.laicatc.com/hg
201 bugzillaurl=https://dev.laicatc.com/bugzilla 205 bugzillaurl=https://dev.laicatc.com/bugzilla
202 206
203 MySQL example configuration. This is for a collection of Mercurial 207 MySQL example configuration. This is for a collection of Mercurial
204 repositories in '/var/local/hg/repos/' used with a local Bugzilla 3.2 208 repositories in ``/var/local/hg/repos/`` used with a local Bugzilla
205 installation in /opt/bugzilla-3.2. The MySQL database is on 'localhost', 209 3.2 installation in /opt/bugzilla-3.2. The MySQL database is on
206 the Bugzilla database name is 'bugs' and MySQL is accessed with MySQL 210 ``localhost``, the Bugzilla database name is ``bugs`` and MySQL is
207 username 'bugs' password 'XYZZY'. :: 211 accessed with MySQL username ``bugs`` password ``XYZZY``. ::
208 212
209 [bugzilla] 213 [bugzilla]
210 host=localhost 214 host=localhost
211 password=XYZZY 215 password=XYZZY
212 version=3.0 216 version=3.0