Bugzilla updates through mercurial commits

Roman Kennke rkennke at redhat.com
Mon Apr 23 00:10:40 PDT 2012


Hi Mark,

> 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

That's very cool!

What is the pattern in the commit message that triggers the hook?

Cheers,
Roman





More information about the distro-pkg-dev mailing list