Bugzilla updates through mercurial commits

Mark Wielaard mark at klomp.org
Sun Apr 22 13:51:55 PDT 2012


Hi,

Mercurial was updated to 2.1.2 and Bugzilla was updated to 4.2.1 on
icedtea.classpath.org. The bugzilla xmlrpc interface has been enabled
and that is now used with a new incoming.bugzilla hook to let mercurial
update any bug mentioned in a commit message.

Hopefully the result is useful. If not we can of course tweak the config.

The following config is now used in hgrc on the server:

[extensions]
hgext.bugzilla =

[hooks]
# run bugzilla hook on every change pulled or pushed in here
incoming.bugzilla = python:hgext.bugzilla.hook

[bugzilla]
version=xmlrpc
# Catch things like PR icedtea/42, PR16, PR 16 or bug #11
regexp=(?:PR [a-z]+/|PR ?|bug ?)#?(\d+)
hgweb=http://icedtea.classpath.org/hg
template=details: {hgweb}/{webroot}?cmd=changeset;node={node|short}\nauthor: {author}\ndate: {date|date}\n\n\t{desc|tabindent|strip}
bzurl=http://icedtea.classpath.org/bugzilla

Cheers,

Mark



More information about the distro-pkg-dev mailing list