Show More
@@ -300,6 +300,10 b' web::' | |||||
300 | allowzip;; |
|
300 | allowzip;; | |
301 | Whether to allow .zip downloading of repo revisions. Default is false. |
|
301 | Whether to allow .zip downloading of repo revisions. Default is false. | |
302 | This feature creates temporary files. |
|
302 | This feature creates temporary files. | |
|
303 | baseurl;; | |||
|
304 | Base URL to use when publishing URLs in other locations, so | |||
|
305 | third-party tools like email notification hooks can construct URLs. | |||
|
306 | Example: "http://hgserver/repos/" | |||
303 | description;; |
|
307 | description;; | |
304 | Textual description of the repository's purpose or contents. |
|
308 | Textual description of the repository's purpose or contents. | |
305 | Default is "unknown". |
|
309 | Default is "unknown". |
@@ -30,7 +30,6 b'' | |||||
30 | # OPTIONAL: |
|
30 | # OPTIONAL: | |
31 | # bzuser = ... # bugzilla user id to record comments with |
|
31 | # bzuser = ... # bugzilla user id to record comments with | |
32 | # db = bugs # database to connect to |
|
32 | # db = bugs # database to connect to | |
33 | # hgweb = http:// # root of hg web site for browsing commits |
|
|||
34 | # notify = ... # command to run to get bugzilla to send mail |
|
33 | # notify = ... # command to run to get bugzilla to send mail | |
35 | # regexp = ... # regexp to match bug ids (must contain one "()" group) |
|
34 | # regexp = ... # regexp to match bug ids (must contain one "()" group) | |
36 | # strip = 0 # number of slashes to strip for url paths |
|
35 | # strip = 0 # number of slashes to strip for url paths | |
@@ -38,6 +37,8 b'' | |||||
38 | # template = ... # template to use when formatting comments |
|
37 | # template = ... # template to use when formatting comments | |
39 | # timeout = 5 # database connection timeout (seconds) |
|
38 | # timeout = 5 # database connection timeout (seconds) | |
40 | # user = bugs # user to connect to database as |
|
39 | # user = bugs # user to connect to database as | |
|
40 | # [web] | |||
|
41 | # baseurl = http://hgserver/... # root of hg web site for browsing commits | |||
41 |
|
42 | |||
42 | from mercurial.demandload import * |
|
43 | from mercurial.demandload import * | |
43 | from mercurial.i18n import gettext as _ |
|
44 | from mercurial.i18n import gettext as _ | |
@@ -266,7 +267,7 b' class bugzilla(object):' | |||||
266 | t.use_template(tmpl) |
|
267 | t.use_template(tmpl) | |
267 | t.show(changenode=node, changes=changes, |
|
268 | t.show(changenode=node, changes=changes, | |
268 | bug=str(bugid), |
|
269 | bug=str(bugid), | |
269 |
hgweb=self.ui.config('b |
|
270 | hgweb=self.ui.config('web', 'baseurl'), | |
270 | root=self.repo.root, |
|
271 | root=self.repo.root, | |
271 | webroot=webroot(self.repo.root)) |
|
272 | webroot=webroot(self.repo.root)) | |
272 | self.add_comment(bugid, sio.getvalue(), templater.email(changes[1])) |
|
273 | self.add_comment(bugid, sio.getvalue(), templater.email(changes[1])) |
General Comments 0
You need to be logged in to leave comments.
Login now