##// END OF EJS Templates
define standard name for base url to use when printing hgweb urls....
Vadim Gelfer -
r2197:5de8b44f default
parent child Browse files
Show More
@@ -300,6 +300,10 b' web::'
300 300 allowzip;;
301 301 Whether to allow .zip downloading of repo revisions. Default is false.
302 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 307 description;;
304 308 Textual description of the repository's purpose or contents.
305 309 Default is "unknown".
@@ -30,7 +30,6 b''
30 30 # OPTIONAL:
31 31 # bzuser = ... # bugzilla user id to record comments with
32 32 # db = bugs # database to connect to
33 # hgweb = http:// # root of hg web site for browsing commits
34 33 # notify = ... # command to run to get bugzilla to send mail
35 34 # regexp = ... # regexp to match bug ids (must contain one "()" group)
36 35 # strip = 0 # number of slashes to strip for url paths
@@ -38,6 +37,8 b''
38 37 # template = ... # template to use when formatting comments
39 38 # timeout = 5 # database connection timeout (seconds)
40 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 43 from mercurial.demandload import *
43 44 from mercurial.i18n import gettext as _
@@ -266,7 +267,7 b' class bugzilla(object):'
266 267 t.use_template(tmpl)
267 268 t.show(changenode=node, changes=changes,
268 269 bug=str(bugid),
269 hgweb=self.ui.config('bugzilla', 'hgweb'),
270 hgweb=self.ui.config('web', 'baseurl'),
270 271 root=self.repo.root,
271 272 webroot=webroot(self.repo.root))
272 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